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.
This is a public API and not part of the protected API accessible through the /api/v1
root.
Before using this endpoint, you'll want to create your first API Key using Composable Studio. Please review Getting Started with Composable Studio for more information.
Get Authentication Token
Endpoint: /auth/token
Method: GET
Headers
Header | Value |
---|---|
Authorization | (Optional) Bearer <YOUR_API_KEY> |
Query Parameters
Parameter | Data Type | Description |
---|---|---|
accountId | string | (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. |
token | string | (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>"