credentials
Approve or deny a credential request (operator)
The operator approves or denies a pending credential request. Requires vault_key (the vault slot to store the credential) and operator_email (must match the account's registered email for binding). If approved is true, credential_value must also be provided — this is the actual secret that will be one-time-delivered to the agent on next poll. If approved is false, the agent will receive a denied status on next poll.
post/v1/credentials/approve
Request
- Base URL: https://agentlair.dev
- URL: https://agentlair.dev/v1/credentials/approve
- Auth: HTTP bearer
Request body
Example request
{
"user_code": "ABCD-1234",
"vault_key": "openai-api-key",
"operator_email": "operator@example.com",
"credential_value": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}Response
Request approved or denied
Changes
No recorded changes to this operation across all 1 revision of this API.