/ Docs

Get Realtime Token

Mint a short-lived Centrifugo connection token. The token carries the session facts the org boundary needs (``meta``), so org-scoped channels are authorized like org-scoped REST routes rather than by membership alone. It names no org and grants no org channel by itself: org-scoped subscriptions need a token from ``POST /v1/realtime/subscription-tokens``. It expires (``exp``), so the client fetches a new one while the socket stays open, and carries the client's build (``build``) when the request names a well-formed one.

GET
/v1/realtime/token

Authorization

BearerAuth
AuthorizationBearer <token>

Botyard API key — see /docs/authentication.

In: header

Header Parameters

X-Client-Build?|

The build of the client asking, e.g. v1.7.2712. Optional. Carried as the token's build claim when it is a release tag or git describe of at most 64 characters; any other value is ignored, never refused.

Response Body

application/json

curl -X GET "https://example.com/v1/realtime/token"
{
  "token": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "error_code": "string",
  "errors": [
    {
      "pointer": "string",
      "detail": "string",
      "type": "string"
    }
  ],
  "trace_id": "string"
}