Skip to main content
Nowledge MemNowledge Mem

Ingest Content

POST
/sources/ingest/content

Ingest raw text content (a paste, or a text file the client read) as a Library source. JSON-only so it works in every transport without multipart/file-path plumbing. The text is written to a temp file and run through the same ingest_file pipeline, so it gets the identical Source lifecycle (parse, index, background extraction). Used by Deep Create's 'bring in material'.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for ingesting raw text content (a paste, or a text file read on the client). JSON, so it works identically in desktop/web/remote without the multipart + file-path plumbing — the client reads the text and posts it.

Response Body

application/json

application/json

curl -X POST "https://example.com/sources/ingest/content" \  -H "Content-Type: application/json" \  -d '{    "content": "string",    "name": "string"  }'
{  "is_duplicate": false,  "lifecycle_state": "string",  "message": "",  "original_name": "string",  "source_id": "string"}