Record a human decision on a document.
Documentation Index
Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
"Bearer YOUR_API_KEY"
"Bearer YOUR_STRIPE_API_KEY"
Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'. Falls back to ?namespace= query parameter if the header is omitted.
"ns_abc123def456"
"production"
"my-namespace"
Create a new annotation on a document.
Document to annotate.
Decision label (e.g. 'approved', 'rejected', 'deferred').
1 - 100Collection the document belongs to.
Human confidence (0.0–1.0).
0 <= x <= 1Why this decision was made.
5000Structured payload (use-case-specific).
Successful Response
Single annotation response.
The document this annotation is attached to.
Namespace scope.
Human decision label. Domain-specific — e.g. 'approved', 'rejected', 'deferred', 'infringement', 'safe', 'confirmed_dupe'.
1 - 100Unique annotation identifier.
Collection the document belongs to.
Human confidence in this decision (0.0–1.0).
0 <= x <= 1Why this decision was made. Stored for audit trail.
5000Use-case-specific structured data. E.g. {'codes_approved': ['E11.40'], 'raf_impact': 0.302}
Retriever that produced the document being annotated.
Retriever execution ID.
Stage that produced the result (e.g. 'llm_enrich').
Who made the annotation (user ID or API key ID).
Actor type: 'user', 'api_key', or 'system'.