List event definitions
GET/api/v1/events/definitions
GET /events/definitions
curl -X GET 'https://www.unitpost.com/api/v1/events/definitions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"object": "list",
"has_more": false,
"data": [
{
"object": "event_definition",
"name": "Example",
"description": "string",
"last_seen_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"payload_keys": [
{
"key": "string",
"type": "string"
}
],
"payload_keys_truncated": false
}
]
}The custom events your backend has sent: each name, when it was last seen, and the top-level payload keys seen with it (read as event.data.<key>; keys and types only, never values). Build a custom-event trigger or an event.data condition from it instead of guessing. The whole vocabulary comes back in one page (at most 500 names), most recently seen first. Requires the automations:read capability.
Response · 200 fields7 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
namerequired | string | The event name, as sent to POST /events. |
descriptionrequired | string | null | — |
last_seen_atrequired | string | null | When the backend last sent it. |
created_atrequired | string | When it was first sent. |
payload_keysrequired | object[] | Top-level `data` keys seen with it (read as `event.data.<key>`), alphabetical, at most 50, never values. `contact_id` and `email` are on every event and aren't listed; keys that look like ids (a payload keyed by SKU or user id) aren't recorded. Recorded since automations were enabled for the workspace's environment. |
payload_keys_truncatedrequired | boolean | The list stopped growing at 50: a payload brought more keys than it keeps. |
200401403