Skip to Content
TorBox API
User

Get Token From Device Code Process

POST /v1/api/user/auth/device/token

Try it in the playground

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, 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)

FieldTypeRequiredDescription
device_codestringyes

Responses

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