Record up to 1,000 events
/events/bulkThe body is a JSON list of up to 1,000 events, each in the shape POST /api/v1/events takes. Always answers 200 with one result per event, in order. An email or external_id nobody has becomes a new profile (not subscribed), as on POST /api/v1/events. One invalid event (or one naming a profile id that does not exist) is reported at its index and never fails the others. Events older than 48 hours are stored as historical.
Permission: events:write · on the API key screen: Events → Full access · All permissions
Body parameters
metricstringrequiredA metric key (placed_order) or name (Placed Order). An unknown name creates a custom metric (at most 200 per account).
At least 1 characters. At most 100 characters.
profileobjectrequiredExactly one of id, external_id or email.
Show propertiesHide properties
idstringAt most 2,000 characters.
external_idstringAt least 1 characters. At most 255 characters.
emailstringAt most 254 characters.
occurred_atstringDefault: now. Events older than 48 hours are stored as historical: they never trigger flows or webhooks.
At most 2,000 characters.
valuestring | numberA decimal amount, as a string or number.
currencystringAt most 2,000 characters.
propertiesobjectUp to 200 keys, 2,000 values in total, 5 levels deep, 32 KB.
unique_idstringYour id for this event. A repeat with the same unique_id records nothing. Without one, a repeat is prevented only by an Idempotency-Key or by sending occurred_at (identical events then collapse).
At least 1 characters. At most 190 characters.
Response
recordednumberrequiredduplicatesnumberrequiredfailednumberrequiredresultsobject[]requiredAt most 1000 items.
Show propertiesHide properties
indexnumberrequiredstatusstringrequiredOne of:
recordedduplicatefailedAt most 2,000 characters.
event_idstring | nullrequiredAt most 20 characters.
codestring | nullrequiredAt most 64 characters.
paramstring | nullrequiredAt most 300 characters.
messagestring | nullrequiredAt most 500 characters.