credentials
Request a credential (agent)
Initiates a credential device flow. The agent provides the type and service name, and receives a device_code + user_code. The user code must be shown to the operator (or sent via email, which AgentLair handles automatically). The agent then polls /v1/credentials/poll until the credential is delivered or the request expires (5 minutes).
post/v1/credentials/request
Request
- Base URL: https://agentlair.dev
- URL: https://agentlair.dev/v1/credentials/request
- Auth: HTTP bearer
Request body
Example request
{
"service_name": "GitHub",
"description": "Read access to private repos"
}Response
Credential request created
Example response
{
"device_code": "dc_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345678901",
"user_code": "ABCD-1234",
"expires_in": 300,
"interval": 5,
"message": "Ask operator to visit https://agentlair.dev/v1/credentials/approve?code=ABCD-1234"
}Changes
No recorded changes to this operation across all 1 revision of this API.