# Create access token from client credentials

```http
POST /auth/token
```

Issue client access token.

## Request body

| Field               | Type   | Required | Description                                                                                                                      |
| ------------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `grant_type`        | string | Yes      | Platform client-credentials grant for the Veryfront proxy. Agents and applications use API keys instead.                         |
| `client_id`         | string | Yes      | Client ID for client\_credentials token exchange                                                                                 |
| `client_secret`     | string | Yes      | Client secret for client\_credentials token exchange                                                                             |
| `options`           | object |          |                                                                                                                                  |
| `project_reference` | string |          | Project UUID or slug for scoped tokens. Select at most one of project\_reference or custom\_domain; unknown projects return 400. |
| `custom_domain`     | string |          | Custom domain to resolve project (alternative to project\_reference)                                                             |

## Responses

| Status | Description                                                                  |
| ------ | ---------------------------------------------------------------------------- |
| 200    | Token successfully generated                                                 |
| 400    | Invalid request, invalid client credentials, or an unknown selected project. |
| 429    | Too many authentication requests from this client                            |
| 500    | Unexpected token exchange failure                                            |
