credentials
Poll for credential delivery (agent)
The agent polls with its device_code to check whether the operator has approved or denied the request. When status is approved, the credential field contains the one-time-delivered secret — it is deleted from AgentLair storage immediately after this response. Recommended interval: 5 seconds (as returned in the request response).
post/v1/credentials/poll
Request
- Base URL: https://agentlair.dev
- URL: https://agentlair.dev/v1/credentials/poll
- Auth: HTTP bearer
Request body
Example request
{
"device_code": "dc_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345678901"
}Response
Poll result
Example response
{
"credential": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"interval": 30
}Changes
No recorded changes to this operation across all 1 revision of this API.