Skip to main content
Idempotent ingestion of a batch of events. Responds 202 as soon as the write is done; consolidation runs as a background job (pending, processed by POST /v1/consolidate — see Consolidator).

Request body

EventIn[]
required
One or more events (min_length=1).
string
Max 256 characters. Batch key: namespaced by each event’s content hash, so several events in the same batch never collide with each other.

Response — 202 Accepted

string
default:"accepted"
CapturedEvent[]
required
uuid | null
null if the whole batch was deduplicated — nothing new to consolidate.
string
The applied policy (HAKI_DEFAULT_POLICY, "default" locally).

Possible errors

missing_scope (an event’s subject_id is empty — 422), forbidden_scope (an event’s project_id ≠ the key’s — 403), invalid_payload (malformed body — 422).