# TokenRequest

> OAuth 2.0 token request (form or JSON).

OAuth 2.0 token request (form or JSON).

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `grant_type` * | `urn:ietf:params:oauth:grant-type:device_code`, `refresh_token`, `authorization_code` |  |
| `client_id` * | string |  |
| `device_code` | string |  |
| `refresh_token` | string |  |
| `code` | string |  |
| `code_verifier` | string |  |
| `redirect_uri` | string |  |

\* always present

## Example

```json
{
  "grant_type": "urn:ietf:params:oauth:grant-type:device_code",
  "client_id": "string",
  "device_code": "string",
  "refresh_token": "string",
  "code": "string",
  "code_verifier": "string",
  "redirect_uri": "string"
}
```

## Used by

- [Exchange a device code, authorisation code or refresh token for an access token](/docs/api/auth/#exchange-a-device-code-authorisation-code-or-refresh-token-for-an-access-token)
