Brain

POST /v1/brain/ingest

Ingest documents into the brain (document items only; conversations go through POST /v1/brain/remember).

unison-brain
POST /v1/brain/ingest

Ingest documents into the brain: each item becomes an extractable note plus extract/enrich jobs. Up to 100 items per call. Conversation/session capture goes through POST /v1/brain/remember instead.

Required scope: brain:write

Body fields

NameRequiredNotes
itemsyesArray (max 100) of document items.
items[].typeyesAlways "document".
items[].contentyesMarkdown/text body.
items[].titlenoDocument title.
items[].pathnoTarget path; defaults to a content-derived path under /private/notes/.
items[].tagsnoFrontmatter tags.
items[].visibilityno"private" (default) or "workspace".
items[].sourceRefnoStable id — re-ingesting the same sourceRef is idempotent.
items[].sourceKindnoIntegration identity ("mail", "linear", …) — routes the doc to /private/sources/<sourceKind>/.

Example

curl -X POST 'https://brain.unisonlabs.ai/v1/brain/ingest' \
  -H "Authorization: Bearer $UNISON_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"items": [{"type": "document", "content": "# Meeting notes...", "title": "Kickoff", "sourceRef": "meeting:2026-07-01"}]}'

Response: { "items": [{ "type": "document", "docId": "...", "path": "...", "jobIds": ["..."] }] } — or an error envelope { "error": { "code", "message" } } on failure.