SmartMemory
POST
/memory/ingest/structured

Ingest structured data via a registered handler.

CORE-INGEST-ROUTE-COLLISION-1: served at POST /memory/ingest/structured. It previously registered /ingest, colliding with the NLP ingest route (ingest_content) — which, registered first, shadowed this handler at dispatch (a structured body silently ingested as empty content) and owned the OpenAPI entry. No HTTP client used the old path, so the move is non-breaking.

Bypasses the NLP pipeline — the structure IS the content. The handler determines strategy (FULL/INDEXED/APPEND), validates, converts to MemoryItem, and creates edges and indexes.

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/structured" \  -H "Content-Type: application/json" \  -d '{    "data": {},    "schema_name": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}