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>"
}
The path is relative to your company specific url:https://your_subdomain.variable.global/api
Unless you have a public API, you will need to authenticate your requests to the PACT API. This is done using the OAuth 2.0 protocol.

Authorizations

Authorization
string
header
required

Body

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

Response

200 - application/json
access_token
string
refresh_token
string
token_type
string
scope
string