# Get Token From Device Code Process

`POST https://api.torbox.app/v1/api/user/auth/device/token`

- Operation ID: `get_token_from_device_code_process`
- Group: User
- Auth: none

### Overview

Gets the user's API token from the device code authorization process. This endpoint is expected to be polled in interval until it returns success, or until the expiry has passed. All data you need for this request is in the [original request](https://api.torbox.app/docs#/User/start_device_code_authorization_process), which includes the interval to be polled by, the expiry time to stop at, and `device_code` to be sent to the API to get the correct data.

### Authorization

None required.

## Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `device_code` | string | yes |  |

## Responses

- `200` Successful Response
- `400` Bad Request
- `404` Not Found
- `422` Validation Error
- `429` Too Many Requests
- `500` Internal Server Error
