Add Brain Document
aidelly_add_brain_documentAdd a reference document to the workspace Brain from pasted text or from source_url, a public PDF, DOCX, TXT or Markdown file (10 MB max; web pages return 415, so send their text instead). Supply exactly one of text or source_url, plus an optional title, document_type and tags. The text is extracted and indexed for aidelly_search_brain. Requires workspace settings permission; a workspace holds at most 50 documents. Retry-safe: a repeat call with the same idempotency_key returns the original result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional body override for endpoints with sparse parameter schemas. | |
| tags | No | ||
| text | No | Document text. Supply exactly one of text or source_url. | |
| query | No | Optional query overrides for endpoints with sparse parameter schemas. | |
| title | No | ||
| brand_id | No | ||
| source_url | No | Public http(s) URL of a PDF, DOCX, TXT or Markdown file (10 MB max). Web pages (HTML) are not accepted; send their text as text instead. | |
| description | No | ||
| workspace_id | No | Workspace to operate in: the `id` of a workspace returned by aidelly_list_workspaces. Optional for read operations; required when creating content. | |
| document_type | No | ||
| idempotency_key | Yes |