logo
OpenapiAuth

Poll a device-authorization login

API Docs with browser client
POST
/auth/oauth/device/status

Long-poll the status of a device login request. Returns the minted JWT once the user approves, or a terminal state (cancelled/expired). Holds the connection up to ~25s while pending.

Authorization

headerx-api-key<token>

Request Body

application/json
  1. body

Input used to poll the status of a device login request.

authReqToken*string

The authReqToken returned by the start endpoint.

Formatuuid
codeVerifier*string

PKCE code verifier proving possession of the codeChallenge sent at start.

Match^[A-Za-z0-9._~-]{43,128}$

Response Body

OK

application/json
  1. response

No decision yet; the client should poll again.

status*unknown

The request is still awaiting browser confirmation.

Example Request
curl -X POST 'https://example.com/v4/auth/oauth/device/status' \  -H 'Content-Type: application/json' \  -d '{  "authReqToken": "2d8c8d17-3354-49f8-9a0d-976ce43b3e16",  "codeVerifier": "string"}'
Example Response
{  "status": "pending"}