post https://auth.api.sandbox.cleeng.com/v1/codes/generate
Use this endpoint to generate a code for a specific device in Device Flow Login (PIN Pair) functionality.
Beta
Please note that it is a Beta phase.
Response Description
Response | Type | Description |
---|---|---|
code | string | Generated code which is used by device for authorization. |
expiresAt | integer | Expiration date of the generated code in milliseconds. (Format: timestamp). |
verificationUrl | string | URL to verify the code. |
Errors
Error Reason | Status code | Error code | Message |
---|---|---|---|
Failed to parse the request body | 400 | REQ0001 | Invalid request body |
Configuration for PIN Pair Login not activated in Cleeng Dashboard | 422 | PINP0001 | PIN-Pair Integration not activated |
Failed to generate unique code | 422 | PINP0101 | Could not generate unique code |
Internal reason | 500 | SXXXX (X - number) | Internal Server Error |