Skip to main content
POST
Create an access token
Send your client ID and client secret with HTTP Basic authentication and the client_credentials grant. The body uses application/x-www-form-urlencoded. The token is valid for 15 minutes and has no refresh token. Cache it and request a new one before it expires. Credentials and tokens belong to one environment, so use the sandbox credential only with the sandbox host. Read Authentication for credential setup and scopes.

Authorizations

Authorization
string
header
required

Use the client ID as the username and the client secret as the password.

Body

application/x-www-form-urlencoded

OAuth 2.0 client credentials request.

grant_type
enum<string>
required

The customer API supports only the client_credentials grant.

Available options:
client_credentials
scope
string

Space-separated scopes to request. Omit this field to request all assigned scopes.

Minimum string length: 1

Response

The access token is ready.

Short-lived bearer token for customer API requests.

access_token
string
required

Bearer token to send in the Authorization header.

expires_in
enum<integer>
required

Token lifetime in seconds.

Available options:
900
expires_at
integer
required

Token expiry as Unix time in seconds.

token_type
enum<string>
required

Token type for the Authorization header.

Available options:
Bearer
scope
string
required

Space-separated scopes granted to this token.