Axiym
Fundamentals

Authentication

View Markdown

The Axiym API platform uses OAuth 2.0 client credentials. Exchange your partner credentials for a short-lived access token, then send it on protected requests.

The token authorizes the scopes and resources configured for your integration. Each endpoint documents its required scope and resource path.

Request an access token

POST /oauth/token uses application/x-www-form-urlencoded. Do not send an Authorization header on this request.

curl --request POST \
  "https://partner-api.sandbox.axiym.io/api/v1/oauth/token" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "client_id=$AXIYM_CLIENT_ID" \
  --data-urlencode "client_secret=$AXIYM_CLIENT_SECRET" \
  --data-urlencode "grant_type=client_credentials" \
  --data-urlencode "scope=$AXIYM_SCOPE"
ParameterValue
client_idOAuth client identifier issued by Axiym.
client_secretOAuth client secret issued by Axiym.
grant_typeclient_credentials.
scopeSpace-delimited scopes required by the API and issued to your integration.
{
  "token_type": "Bearer",
  "expires_in": 3600,
  "scope": "<requested_scope>",
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1Ni..."
}

Authenticate API requests

Send the access token in the Authorization header of every protected API request:

Authorization: Bearer <access_token>

Store client_secret server-side in an environment-specific secret store. Sandbox and production credentials are separate.

Track expires_in and obtain a new token before the current token expires. If a token is missing, expired, or invalid, request a new token and retry the original request once.