Generate new device codes

Generate new codes to start the device authentication process. The device_code and interval will be used later to poll for the access_token. The user_code and verification_url should be presented to the user as mentioned in the flow steps above.

QR Code

You might consider generating a QR code for the user to easily scan on their mobile device. The QR code should use https://auth.trakt.tv/activate, which loads the Trakt hosted activation page.

JSON POST Data

KeyTypeValue
client_id *stringGet this from your app settings.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Body

string
required

The client ID of the application.
You can find it in the application details here: https://app.trakt.tv/settings/apps

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json