POST /api/sources/from_attachments
Creates a Knowledge source from chat attachments the caller already uploaded. The stored originals are copied into a new source and ingested like an upload (a zip contributes its files); the files together may not exceed the upload request limit (413). Returns the source id and the ingest task id; progress arrives as source.ingest.* events for that source id. Honors an optional Idempotency-Key header: a repeat request with the same key within 24h returns the first request's source and task ids without copying the files or queueing a second ingest.
Personal access token scope: sources:write.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
attachment_ids*array<string>Ids of the caller's chat attachments, in the order to list them
name?stringName of the new source; defaults to the first file's name and a count
Success
curl -X POST 'http://localhost:7091/api/sources/from_attachments' \ -H 'Content-Type: application/json' \ -d '{ "attachment_ids": [ "string" ]}'Remove pages or a folder from a Website source POST
Remove pages or a folder from a Website source. The config changes now: a page added by address leaves the list; one found by a site's crawl (or a whole folder) is skipped in later syncs. Their chunks and tree entries go in a background task (task_id), after any running sync; a 500 with code queue_failed when the config was saved but the task couldn't be queued. A page an older url, crawler or sitemap source stored without its address is matched by the address on its chunks; when none is found it is still removed, by its path, and the config is left as it is. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.
POST /api/sources/{source_id}/search POST
Run the real retrieval pipeline against one source and return the ranked chunks it produces, optionally under an ad-hoc retrieval config. Read-only: nothing is saved. [Personal access token](/API/personal-access-tokens) scope: `chat:run`.