Overview
This endpoint allows agents to poll for the status of an authorization request. The agent should poll this endpoint after authenticating to know when the authorization flow is complete.Query Parameters
string
required
The authorization request ID
Response
Pending (200 OK)
Authorization is still in progress:Authenticated (200 OK)
Agent has authenticated, waiting for user’s browser to receive the code:Completed (200 OK)
Authorization is complete, user’s browser has received the code:Error (200 OK)
An error occurred during authorization:Not Found (404)
Authorization request doesn’t exist:Status Flow
Polling Strategy
Polling Interval
Polling Interval
Poll every 1-2 seconds to balance responsiveness with server load.
Timeout Handling
Timeout Handling
Set a reasonable timeout (30-60 seconds) for polling. Authorization requests expire after 10 minutes.
Exponential Backoff
Exponential Backoff
For long-running processes, implement exponential backoff to reduce server load:
Complete Example
Important Notes
Status polling is optional. Most agents can authenticate and then let the user’s browser complete the flow naturally. Polling is useful if you need to know precisely when authorization completes.
Next Steps
Authenticate
POST /api/agent/authenticate - Back-channel authentication
Complete Flow Example
See full agent integration examples
