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 '{ "name": "string", "content": "string" }'{
"source_id": "string",
"original_name": "string",
"lifecycle_state": "string",
"is_duplicate": false,
"message": ""
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}