Authentication Tokens

The /auth/token endpoint allows you to obtain a JWT token by providing your API Key. The token can then be used to authenticate subsequent API calls.

Get Authentication Token

Endpoint: /auth/token

Method: GET

Headers

HeaderValue
Authorization(Optional) Bearer <YOUR_API_KEY>

Query Parameters

ParameterData TypeDescription
accountIdstring(Optional) The ID of the account to generate a token for. If not specified, the token will be generated for the account associated with the API Key.
tokenstring(Optional) The API Key. If not specified, the token will be generated for the API Key used to authenticate the request.

Example Request

https://studio-server-production.api.becomposable.com/auth/token?token=

Example Response

{
  "token": "<YOUR_JWT_TOKEN>"
}

Code Examples

Get a JWT token using an API Key.

Get JWT Token

curl -X GET "https://studio-server-production.api.becomposable.com/auth/token?token=<YOUR_API_KEY>"

Was this page helpful?