Get Approval Count

Database and access

These endpoints use the AgentOS-level database. Configure AgentOS(db=...) with an adapter that implements approvals; unsupported approval operations return 503. See Approvals.

Scoped callers can read only requester-owned records. Non-admin JWT callers are scoped with user isolation enabled; non-admin service-account PAT callers are scoped even without it. A caller-supplied user_id does not override this identity.

The count reflects stored status. A past expires_at timestamp alone does not automatically remove a still-pending approval from the count; the record must transition to an expired or other nonmatching status.

GET/approvals/count

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

user_id?string|null

Response Body

application/json

application/json

curl --request GET 'https://example.com/approvals/count'
{  "count": 0}