Authentication
Get an access token
Exchange your API credentials for the token every other call needs.
POST
cURL
Every call to the API needs an access token. Request one here with your API credentials, then send
it as
Authorization: Bearer ACCESS_TOKEN. The SDKs make this call for you, so you only need it for
cURL, another HTTP client, or to try the API on this site. A token lasts expires_in seconds.
1
Enter your API host and credentials
Click Try it, set
host to your Exsited API host name (without https://), choose
client_credentials for grant_type, and fill in your client ID, client secret and redirect URI.2
Send the request
The response holds
access_token, refresh_token and expires_in.3
Use the token
On any other endpoint, click Try it, set the same
host, and paste the token into
Authorization.A wrong client secret or redirect URI returns
400. An unknown client ID, or a request without
grant_type, returns a redirect to the sign-in page instead of an error, and this page shows
redirect to unsafe URL blocked. The SDKs report both as an authentication error. Check the
client ID, client secret and redirect URI, and send again.Body
application/json
client_credentials for a new token, or refresh_token to renew one.
Available options:
client_credentials, refresh_token Your integration's client ID.
The secret paired with the client ID.
The redirect URI registered for your integration. Required with client_credentials; not sent with refresh_token.
With refresh_token only: the refresh_token from an earlier token response.