v1

latestSwagger 2.0Apache 2.02026-08-06303655.6 KB
authentication

Create an API token

OAuth2 Client Credentials grant. Returns a Bearer access token.

Regular clients: token is scoped to the client's account — no additional parameters needed.

Super-user clients (account_id 10000): two options:

  • Pass account_guid in the request body to receive a token scoped to that specific campaign account.
  • Omit account_guid to receive an unscoped super-user token (scope: super). All subsequent requests using this token must include an X-Account-GUID header with the target campaign account GUID.
post/tokens

Request body

grant_type'client_credentials' required

Must be 'client_credentials'

client_idstring required

OAuth2 client_id

client_secretstring required

OAuth2 client_secret

account_guidstring

Super-user clients only: campaign account GUID to scope this token to. Omit to receive an unscoped super-user token that requires X-Account-GUID on every request.

Response

Token created successfully

All 30 operations