Agents
Deny Agent
Changed onDeny a pending agent.
Same authorization as approve: the agent's owner or an org:admin, and only an org:admin for an agent with no owner. Any other caller gets a 404.
post/agents/{agent_id}:deny
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /agents/{agent_id}:deny
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /authorize, token URL /oauth/token)
Path parameters
agent_idstring required
ID of the agent.
Example:agnt_6968b3984d1c238dbe7e2e29
Request body
Example request
{
"reason": "Requested permissions exceed the agent's stated purpose."
}Response
Successful Response
Example response
{
"approved_at": "2026-01-15T09:45:00Z",
"approved_by": "usr_6968b3987ee4c3ec0b4ee3b9",
"created_at": "2026-01-15T09:30:00Z",
"denial_reason": "Requested permissions exceed the agent's stated purpose.",
"denied_by": "usr_6968b3987ee4c3ec0b4ee3b9",
"description": "Reconciles Stripe invoices against the ledger every night.",
"has_api_key": true,
"id": "agnt_6968b3984d1c238dbe7e2e29",
"name": "invoice-reconciler",
"owner_id": "usr_6968b3987ee4c3ec0b4ee3b9",
"parent_agent_id": "agnt_6968b3984d1c238dbe7e2e29",
"registered_by": "usr_6968b3987ee4c3ec0b4ee3b9",
"status": "active"
}Changes
- info
the endpoint scheme security
OAuth2was added to the API
- info
- info
endpoint added
- info