Add a document
Adds a document from raw text (content) or a file URL (url — PDF/DOCX/TXT/MD/CSV/HTML, downloaded server-side, max 20 MB). Exactly one of content / url must be provided. Chunking and embeddings run synchronously; the response contains the final document with status ready (or error + error_message if ingestion failed). Required scope: knowledge:write (keys without scope restrictions have full access).
Authorizations
API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, settings:write, platform:read, platform:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access.
Path Parameters
Knowledge base ID.
Body
Provide exactly one of content (raw text) or url (file URL — PDF/DOCX/TXT/MD/CSV/HTML, downloaded server-side, max 20 MB). Processing (chunking + embeddings) runs synchronously.
Response
The processed document.