POSTAuthentication

Get Auth Token

/api/v1/auth/token

Authenticate using client credentials and receive a Bearer access token. Token validity is 48 hours (172800 seconds).

Request Body Fields

FieldTypeRequiredDescription
client_idstringYesClient ID (mapped to partner api_key)
client_secretstringYesClient secret (mapped to partner api_secret)

Request Body Example

Example:

{
  "client_id": "your_client_id",
  "client_secret": "your_client_secret"
}

Response

Success Response Example:

{
  "success": true,
  "data": {
    "access_token": "pcpa_MQ.a0FwMy1LQjBwNVlzQmRiNGE4NlI3d...",
    "token_type": "Bearer",
    "expires_in": 172800,
    "expires_at": "2026-03-11T14:03:49.757Z"
  }
}

Error Response

Error Example:

{
  "success": false,
  "error": {
    "code": "AUTHENTICATION_FAILED",
    "message": "Invalid client id or secret"
  }
}

Available Errors

HTTP StatusCodeMeaning
400INVALID_REQUESTMissing required fields
401AUTHENTICATION_FAILEDInvalid credentials
403PARTNER_INACTIVEPartner account inactive