The batch envelope
A batch has the same envelope as an event, withtype set to batch and the events in data.events:
The
x-tikt-event header says batch.
Good to know
- A batch is delivered, retried and resent as a whole. If your endpoint fails on one event of the batch, answer with an error: the whole batch comes back.
- A batch heavier than 5 MB is split in two before it is first sent. Each half is a batch with its own
id. - The same event is never in two batches for the same destination. Like single events, a batch can arrive twice (after a timeout): use its
id— or each event’sid— to ignore a duplicate.
