Define or describe an event nameMenu

Define or describe an event name

PUT/v1/events/catalog/{name}

Requires an API key with the events:write scope. About keys and scopes

Works with integration and partner keys, not agent keys.

Safe to retry: a repeat sets the same values again. About idempotency

Adds a name to the catalogue before the app sends it, so a journey, segment or goal can be built on it while the app's developers add it, or sets the description of a name already listed. Sending events with exactly this name then fills its figures. A name new to the workspace counts against its limit, and past it is refused with EVENT_NAME_LIMIT_REACHED; a name being deleted is 409 CONFLICT. contact.* names and Ordered Product are recorded by Kirora and refused. On /v1 it takes events:write, which an agent key cannot hold.

Path parameters

namestringrequired

The event name, exactly as it is tracked, URL-encoded (Order%20Completed).

pattern ^\P{Cc}+$ · 1–128 characters

Header parameters

Kirora-Workspacestringoptional

Partner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.

pattern ^[A-Za-z0-9._:-]{1,128}$

Request body

descriptionstring | nullrequired

What the event means, at most 255 characters: shown in the lists and pickers, and read by Kiro. null removes it.

1–255 characters

Returns

Returns 200 OK with an EventName in data. It can also return 409 Conflict, 413 Payload Too Large or 415 Unsupported Media Type; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.

  • 200 OKThe name as the catalogue lists it.
  • 409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.
  • 413 Payload Too LargeThe body is larger than this operation accepts (PAYLOAD_TOO_LARGE).
  • 415 Unsupported Media TypeThe body is not JSON, or not the upload the operation takes (UNSUPPORTED_MEDIA_TYPE).
namestringrequired
originstringrequired

one of system, standard, custom

recordedbooleanrequired

Whether the workspace has events of it. False for a name defined before it was sent, and for a system name Kirora has not recorded yet.

descriptionstring | nullrequired

The workspace's description, else Kirora's meaning for a system or standard name; null when neither. Plain text.

lastSeenAtstring | nullrequired

When its latest event happened; null when it has none.

date-time

last30DaysCountintegerrequired

Events of it that happened in the last 30 days.

min 0

usedByCountintegerrequired

Journeys, segments, campaigns, conversion goals and active workspace goals that read it; the summary names them.

min 0