Skip to Content
TorBox API
User

Start Device Code Authorization Process

GET /v1/api/user/auth/device/start

Try it in the playground

GET https://api.torbox.app/v1/api/user/auth/device/start

  • Operation ID: start_device_code_authorization_process
  • Group: User
  • Auth: none

Overview

Starts the device code authorization process. Returns all the necessary information to complete the rest of the flow. This includes the following:

  • device_code - The code your app will use for consecutive requests for getting the user token.

  • code - This is the 6 digit code that you show to the user to be entered at the following verification_url.

  • verification_url - This url which you will show as a QR code.

  • friendly_verification_url - The friendly short url which you can show as plain text to user if they cannot use the QR code method.

You may also submit the app parameter to this request to show your app name on the verification_url page. This concretes user trust in authorizing your application to use their TorBox account. This is not required, but is a good idea. Default is "Third Party App". This name is also only allowed to be alpha-numeric characters (A-Z,0-9). Anything else will be filtered our when being shown to the user. The friendly_verification_url will always show "Third Party App" to keep the URL short.

The device_code is only valid for 10 minutes. Make sure the user is aware of this time limit so they submit and login before this time limit is over.

Authorization

None required.

Parameters

NameInTypeRequiredDescription
appquerystringnoThe app name that the user will see when verifying the code. This should be the name of your app.

Responses

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