POST /v1/indexes/products/documents 🔒 Bearer

Add a document

Insert or update a single document.

Adds one document to the index. If a document with the same id already exists, this request upserts it — the entire stored document is replaced by the body.

For bulk operations (more than a couple of documents at a time), use the batch endpoint — it's 50–100× faster.

# Body

The body must match your index schema. Unknown fields are rejected with SK-SE-400. Optional fields can be omitted; required fields cannot.

Field Type Notes
id string Required. Your stable identifier.
(schema fields) per schema All declared fields are accepted.

# Response

{ "data": { "id": "1", "indexed": true } }
esc
POST /v1/indexes/products/documents