Approval Counts
Exact number of `pending` drafts of each kind in the workspace (any member).
API key access
sequences:read scope with an API key (ro_pat_...). A signed-in session uses the caller's role./api/v1/approvals/countsAccess token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).
In: header
Header Parameters
Id of the workspace to act on (must be a member).
Response Body
curl -X GET "http://localhost:8000/api/v1/approvals/counts" \ -H "X-Workspace-Id: string"{
"email_drafts": 0,
"reply_drafts": 0,
"total": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Revoke Api Key
Revoke a key at once (idempotent). Your own keys; admins and owners: any key of the workspace.
Add Assistant Attachment To Knowledge
Store an attached file's text in the knowledge base (`POST /kb/documents/text`, as the user: its rules and free-tier budgets apply) and answer what that route answers. 422 when the file has no text (RO-323).