Skip to main content
POST
Device authorization (V2)

Body

application/x-www-form-urlencoded
client_id
string
required

Your app's client ID.

scope
enum<string>

Defaults to media:read when omitted.

Available options:
media:read,
media:read media:write

Response

Device authorization started.

RFC 8628 section 3.2 device authorization response.

device_code
string
required

Secret handle the device polls with. Never show this to the user.

user_code
string
required

The 8-character code the user types, formatted XXXX-YYYY. Display it exactly as returned.

Example:

"BDWP-HQPK"

verification_uri
string
required

Where the user goes to enter the code.

Example:

"https://simkl.com/pin"

verification_uri_complete
string
required

The same page with the code pre-filled. Ideal for a QR code, since the user then types nothing.

Example:

"https://simkl.com/pin?user_code=BDWP-HQPK"

expires_in
integer
required

Seconds until the device code expires. 900, i.e. 15 minutes.

Example:

900

interval
integer
required

Minimum seconds between polls. 5.

Example:

5