Capture up to 100 behavior events in one request
The same events as `/api/v1/events`, up to 100 per request and 256 KB in total; each event keeps the 16 KB limit. Give every event a `messageId`: then a batch can be retried as a whole after a timeout, a 429 or a 503, and each event is still stored once. A malformed event is rejected on its own and the rest are stored. Every event counts against the rate limit.
/api/v1/events/batchThe same events as /api/v1/events, up to 100 per request and 256 KB
in total; each event keeps the 16 KB limit. Give every event a
messageId: then a batch can be retried as a whole after a timeout,
a 429 or a 503, and each event is still stored once. A malformed event
is rejected on its own and the rest are stored. Every event counts
against the rate limit.
Authorization
bearerAuth Workspace API key from Atune settings or onboarding.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/events/batch" \ -H "Content-Type: application/json" \ -d '{ "batch": [ { "accountId": "acme", "userId": "user_123", "event": "feature.report.generated", "messageId": "0f8c2e1a-1d2b-4c3d-9e8f-123456789abc" }, { "accountId": "acme", "event": "feature.export.csv", "messageId": "7a1b9c3d-2e4f-4a6b-8c0d-abcdef012345" } ] }'{ "ok": true, "stored": 1, "deduped": 1, "rejected": 0, "results": [ { "index": 0, "status": "stored" }, { "index": 1, "status": "deduped" } ]}