Skip to main content
Key2Arena uses OAuth 2.0 Client Credentials for server-to-server authentication. Each API client receives a unique Client ID and Client Secret.
Access tokens are valid for 1 hour. Request a new token when the current one expires.

Generate an access token

Send a request to:
Use application/x-www-form-urlencoded and provide your credentials, requested scopes, and the client_credentials grant type.

Token response

A successful request returns an access token:
Access tokens are valid for 1 hour. When a token expires, request a new one using the same Client ID and Client Secret.

Use the access token

Include the token in the Authorization header of every authenticated request:
Example:

Scopes

Scopes control which endpoints an access token can access. Request only the scopes enabled for your API client. For example, a token used only to browse the catalog can request:
A full ordering integration can request:

Authentication errors

Requests without a valid access token return:
If the token is valid but does not include the required scope:
Each API client is linked to a Key2Arena customer account. Products, pricing, balance, and orders are automatically resolved for that customer.