Create Document
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Path parameters
Store id (prefixed external id, store_...).
Collection name (lowercase letters, digits, _, -).
Headers
Request
The document body (a JSON object, at most 256 KiB). On updateDocument, the fields to merge; a null removes a field.
On createDocument, the id to write at (letters, digits, _ . - : ~ @ +, at most 200,
not the reserved query or batch); minted when absent. Ignored on putDocument /
updateDocument, where the URL names it.
Response headers
The document’s current revision as a strong entity tag. Send it back
in If-Match to write only if nobody else has written since - the same
value is on the body as revision.
Response
Incremented on every write to this id. It counts writes to a live
document and starts again at 1 if the id is deleted and written
again, so use revision, not this, to write conditionally.
Names this exact version of the document and never repeats - not
for a later write, and not for a document deleted and written again
at the same id. Send it in If-Match (quoted, as the ETag of a
read returns it) to write only if nothing has changed since.
The durable run (and its journal step) that wrote this version. Absent for a direct API write.