Skip to main content
POST
/
cli
Poll device token
curl --request POST \
  --url https://api.example.com/cli

Request

{
  "action": "device-token",
  "device_code": "dc_abc123"
}

Response (pending)

{
  "status": "pending"
}

Response (success)

{
  "access_token": "eyJ...",
  "token_type": "bearer",
  "expires_in": 3600
}
Poll at the interval from the device code response (default: 5 seconds). Faster polling may trigger rate limiting.