Capture several ContentSources in one transaction

POST
/v1/sources/content/batch

Accept an ordered group of raw content Sources that belong together, such as the parts of one conversation turn. Each item follows the rules of the single ContentSource capture operation. All items are stored in one transaction, or none is stored. Newly stored items receive consecutive journal positions in request order. An exact replay is idempotent, and an item whose identity already exists with the same content and metadata counts as stored and keeps its existing position. An item whose identity exists with different content or different metadata rejects the whole request. Accepted Source evidence does not mean Memory was extracted.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer credential resolved to an opaque authenticated Principal by the Server deployment.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/sources/content/batch" \  -H "Content-Type: application/json" \  -d '{    "scope_id": "string",    "sources": [      {        "source_id": "string",        "content": "string"      }    ]  }'
{  "status": "accepted",  "sources": [    {      "source": {        "name": "string",        "source_id": "string",        "locator": {          "kind": "sequence",          "sequence": 0        }      },      "position": 1    }  ]}