roasOS
API referenceAgent

Decline an approval

Refuse one approval card the run opened, so the work behind it never starts and nothing is charged for it. Approving is a separate operation at `/approve`. It is deliberately absent from the MCP tool list: a connected model may refuse spend, and must never approve its own.

POST
/v1/agent-runs/{id}/gates/{gate_id}/decline

Refuse one approval card the run opened, so the work behind it never starts and nothing is charged for it.

Approving is a separate operation at /approve. It is deliberately absent from the MCP tool list: a connected model may refuse spend, and must never approve its own.

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication. Use your API key as the bearer token: Authorization: Bearer roasos_sk_...

In: header

Path Parameters

id*string
Formatuuid
gate_id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/agent-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/gates/497f6eca-6276-4993-bfeb-53cbbbba6f08/decline" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "gate_id": "a33726af-ba3a-459e-a71e-d28211d14ddb",    "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",    "status": "declined",    "decided_at": "2019-08-24T14:15:22Z"  }}