POST
/
auth
/
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

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

Response

200 - application/json

A token

The response is of type object.