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).
API key access
/api/v1/assistant/attachments/{attachment_id}/knowledgeAccess 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
Path Parameters
uuidHeader Parameters
Id of the workspace to act on (must be a member).
Default: the file's name.
1 <= length <= 500Response Body
curl -X POST "http://localhost:8000/api/v1/assistant/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge" \ -H "X-Workspace-Id: string" \ -H "Content-Type: application/json" \ -d '{}'{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Approval Counts
Exact number of `pending` drafts of each kind in the workspace (any member).
Assistant Briefing
A compact daily briefing (RO-300): activity since `since` (default the last 24 hours, at most 31 days back), what needs the user (drafts to review, replies with an open draft, handoff requests) and today's meetings, AI callbacks and calls in the workspace's time zone. An API key or connector sees the sections its scopes can read (`leads:read`, `analytics:read`, `replies:read`, `sequences:read`, `calls:read`); the others are named in `omitted`.