SmartMemory
POST
/memory/ingest/document

Ingest a document from a public URL.

Creates a parent document node (INDEXED) and chunk nodes (FULL, embedded) linked via PART_OF edges. Deduplicates by source URL + content hash.

Security: only http:// and https:// URLs are accepted. Local file paths and other URI schemes (file://, gopher://, ftp://, etc.) are rejected to prevent SSRF/LFI attacks. Local-file ingestion is exposed via the CLI (CORE-STRUCT-CLI-1).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/memory/ingest/document" \  -H "Content-Type: application/json" \  -d '{    "source": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}