v38

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-1793196344.2 KB
Memories

Add multiple memories

Adds multiple documents to the index in a single request.

All items are validated before any database operations occur. If any item fails validation, the entire batch is rejected with a 422 error detailing which items failed and why.

Maximum 100 items per request. Each item follows the same schema as the single-item /memories/add endpoint.

post/memories/add/bulk

Request body

Example request

{
  "items": [
    {
      "collection": "my-collection",
      "metadata": {
        "author": "John Doe",
        "date": "2025-05-20T02:31:00Z",
        "rating": 3
      },
      "text": "...",
      "title": "My Document"
    }
  ]
}

Response

Successful Response

successboolean
countinteger required

Number of items successfully processed