Skip to main content
POST
/
auth
/
token
Get a token
curl --request POST \
  --url https://app.variable.global/api/auth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "<string>",
  "scope": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.variable.global/llms.txt

Use this file to discover all available pages before exploring further.

This is only required if you’re not using an API Key.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/x-www-form-urlencoded
grant_type
string
required

client_credentials

Example:

"client_credentials"

Response

200 - application/json

A token

access_token
string
refresh_token
string
token_type
string
scope
string