Create Document
Write a document, minting an id when none is given. Prefer putDocument
with a stable id you derive from the content, so a retry never
duplicates. Bounded by the store’s document limit (409
store_document_limit_reached).
Dark launch: requires the hosted_apis_access entitlement (402 hosted_apis_not_in_plan otherwise).
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);
minted when absent. Ignored on putDocument / updateDocument, where the URL names it.
Response headers
Response
The durable run (and its journal step) that wrote this version. Absent for a direct API write.