> ## Documentation Index
> Fetch the complete documentation index at: https://developer.audiohook.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get token

## 🎟️ 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

```bash theme={null}
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

```json theme={null}
{
  "_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer"
}
```

***

### 🌐 HTTP Request

```
POST /stage/get-token
```

***

### 🧾 Parameters

| Parameter       | Required | Type   | Description                                        |
| --------------- | -------- | ------ | -------------------------------------------------- |
| `client_id`     | ✅        | string | The client ID associated with an advertiser/agency |
| `client_secret` | ✅        | string | The client secret associated with the advertiser   |
