Generate code

Use this endpoint to generate a code for a specific device in Device Flow Login (PIN Pair) functionality.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Response Description

ResponseTypeDescription
codestringGenerated code which is used by device for authorization.
expiresAtintegerExpiration date of the generated code in milliseconds. (Format: timestamp).
verificationUrlstringURL to verify the code.

Errors

Error ReasonStatus codeError codeMessage
Failed to parse the request body400REQ0001Invalid request body
Configuration for PIN Pair Login not activated in Cleeng Dashboard422PINP0001PIN-Pair Integration not activated
Failed to generate unique code422PINP0101Could not generate unique code
Internal reason500SXXXX (X - number)Internal Server Error
Body Params
string
required

Unique device identifier. Minimum length: 1. Maximum length: 128.

string
required

User-friendly device name. Minimum length: 1. Maximum length: 128.

int32
required

Cleeng's broadcaster identifier. Value is publisherId. Minimum: 1. Maximum: 999999999.

Responses

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