Skip to main content
POST
Ingest events in batch
Each event in events (1 to 100 items) is validated and ingested independently. The 202 Accepted response returns results in request order with status: ACCEPTED (including the accepted event) or status: ERROR (including an API error object). Valid events are still accepted and processed when sibling items fail; 400 is returned only when the batch envelope itself is malformed. Batch ingestion follows the same asynchronous validation, rule evaluation, and read-after-write behavior as single-event ingestion. Each event requires its own per-program idempotency_key in the request body; the batch endpoint ignores the Idempotency-Key header.
For usage patterns and examples, see the Event processing guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Body

application/json

Batch of events

Up to 100 events to ingest in one request.

events
object[]
required

Events accepted or rejected independently in request order (1 to 100 items).

Required array length: 1 - 100 elements

Response

Batch accepted for async processing

The outcome of a batch of events: counts, and one result for each event in the order you sent them.

error_count
integer

Number of events rejected before ingestion

Example:

1

results
object[]

Per-item outcomes in the same order as the submitted events

success_count
integer

Number of events accepted for asynchronous processing

Example:

9

total
integer

Number of submitted items, including accepted and rejected events

Example:

10