cURL
curl --request POST \ --url https://api.example.com/cli
Poll for the access token after user authorization.
{ "action": "device-token", "device_code": "dc_abc123" }
{ "status": "pending" }
{ "access_token": "eyJ...", "token_type": "bearer", "expires_in": 3600 }