Events
Retrieve an event name
GET/v1/events/names/{name}
Requires an API key with the events:read scope. About keys and scopes
How often the event arrived in the last 30 days, when it was last seen (null when no event of that name is held, so the name has never arrived or every one has passed retention), and the property keys its most recent 1,000 events carry, with their types and up to five sample values. Feeds the property pickers in segment and journey rules. An embed session gets no sample values unless minted with includeAttributeValues.
Path parameters
namestringrequired1–128 characters
Returns
Returns 200 OK with a EventNameDetail in data. Otherwise returns an error; Errors lists every code and which to retry.
namestringrequiredcountLast30DaysintegerrequiredEvents in the last 30 days, counted up to 100,000.
min 0 · max 9007199254740991
lastSeenAtstring | nullrequiredWhen the latest event arrived.
date-time
propertiesobject[]requiredKeys seen in the most recent 1,000 events, most common first.
4 child attributes
keystringrequiredtypesstring[]requiredThe value types seen under this key.
samplesstring | number | boolean[]requiredUp to five distinct scalar values.
seenInintegerrequiredHow many of the sampled events carry this key.
min 0 · max 9007199254740991
usedByobjectrequiredWhat reads this event, up to 50 of each: journeys (trigger, exit conditions, waits and rules in their steps), segments and campaign audiences (event rules), and conversion goals.
4 child attributes
journeysobject[]required3 child attributes
idstringrequireduuid
namestringrequiredstatusstringrequiredone of
draft,active,paused,ended
segmentsobject[]required2 child attributes
idstringrequireduuid
namestringrequired
campaignsobject[]required3 child attributes
idstringrequireduuid
namestringrequiredstatusstringrequiredone of
draft,scheduled,sending,sent,cancelled
conversionGoalsobject[]required3 child attributes
idstringrequireduuid
campaignIdstring | nullrequireduuid
journeyIdstring | nullrequireduuid