border.bot
Esc
  • Loading…
↑ ↓ to move↵ to openEsc to close
Docs menu

GET https://api.border.bot/v1/me

Requires an access token from an API client (Authorization: Bearer <access_token>).

The workspace and API client behind this request, with the current credit balance.

Any API client may call this.

Responses#

  • 200: The calling workspace. (MeResponse)
  • 401: Missing, invalid or expired access token, or a revoked or expired API client (unauthorized). (Error)
  • 429: Rate limited (rate_limited). Retry after Retry-After seconds; RateLimit says which limit was hit (r=0, t seconds until its window ends) and RateLimit-Policy its quota. (Error)
  • 500: Unexpected error (internal). (Error)

Example request#

curl -X GET https://api.border.bot/v1/me \
  -H "Authorization: Bearer $BORDERBOT_TOKEN"

Example response (200)#

JSON
{
  "data": {
    "organization": {
      "id": "string",
      "name": "string",
      "status": "active"
    },
    "client": {
      "id": "string",
      "name": "string",
      "clientId": "string",
      "scopes": [
        "classify"
      ],
      "expiresAt": "string"
    },
    "credits": {
      "balance": 0
    }
  }
}