Menu

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

namestringrequired

1–128 characters

Returns

Returns 200 OK with a EventNameDetail in data. Otherwise returns an error; Errors lists every code and which to retry.

namestringrequired
countLast30Daysintegerrequired

Events in the last 30 days, counted up to 100,000.

min 0 · max 9007199254740991

lastSeenAtstring | nullrequired

When the latest event arrived.

date-time

propertiesobject[]required

Keys seen in the most recent 1,000 events, most common first.

4 child attributes
keystringrequired
typesstring[]required

The value types seen under this key.

samplesstring | number | boolean[]required

Up to five distinct scalar values.

seenInintegerrequired

How many of the sampled events carry this key.

min 0 · max 9007199254740991

usedByobjectrequired

What 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[]required
3 child attributes
idstringrequired

uuid

namestringrequired
statusstringrequired

one of draft, active, paused, ended

segmentsobject[]required
2 child attributes
idstringrequired

uuid

namestringrequired
campaignsobject[]required
3 child attributes
idstringrequired

uuid

namestringrequired
statusstringrequired

one of draft, scheduled, sending, sent, cancelled

conversionGoalsobject[]required
3 child attributes
idstringrequired

uuid

campaignIdstring | nullrequired

uuid

journeyIdstring | nullrequired

uuid