Record an event
/eventsRecords one event (201). A profile named by an email or external_id nobody has is created first (not subscribed), like a new contact with no consent; an id must be an existing profile's. A repeat of an event already recorded answers 200 with status: duplicate. value and currency are stored as sent; revenue reports use orders, not event values.
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
statusstringrequiredOne of:
recordedduplicateAt most 2,000 characters.
eventobject | nullrequiredShow propertiesHide properties
objectstringrequiredOne of:
eventAt most 2,000 characters.
idstringrequiredAt most 20 characters.
metricstringrequiredAt most 64 characters.
metric_namestringrequiredAt most 100 characters.
profile_idstringrequiredAt most 2,000 characters.
occurred_atstring | nullrequiredAt most 40 characters.
valueobject | nullrequiredShow propertiesHide properties
amountstringrequiredAt most 40 characters.
currencystring | nullrequiredAt most 3 characters.
propertiesobjectrequiredsourcestringrequiredAt most 16 characters.