Skip to main content

๐ŸŽŸ๏ธ Get Token

This endpoint allows advertisers or agencies to request a JWT token using their client_id and client_secret. The returned token is valid for 1 hour and must be included in the Authorization header for subsequent API calls.

๐Ÿ“ค Request Example

curl -X POST https://betaapi.audiohook.com/stage/get-token \
  -H "Content-Type: application/json" \
  -d '{
    "request_headers": [
      {
        "name": "X-Request-Header",
        "value": "Header value"
      }
    ],
    "body": {
      "client_id": "ac500bf0-2567-4ba6-9776-89c664203d99",
      "client_secret": "47e438d3-8b12-45ab-9017-732349dfe925"
    }
  }'

โœ… Response Example

{
  "_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer"
}

๐ŸŒ HTTP Request

POST /stage/get-token

๐Ÿงพ Parameters

ParameterRequiredTypeDescription
client_idโœ…stringThe client ID associated with an advertiser/agency
client_secretโœ…stringThe client secret associated with the advertiser