Event Metadata

Query events metadata

Returns event metadata entries for the given category, optionally filtered by event names and/or origins.

Supported categories: automations, events, segments

API version scoping: The events a category exposes depend on the requested Omnisend-Version; a date between releases resolves to the nearest earlier supported version. Brand-custom events are not version-scoped.

Event name filtering: When events are provided, only events whose system name matches one of the given values are returned (exact, case-sensitive match).

Origin filtering: By default the response includes Omnisend events together with events from every origin the brand has data for. When the brand is connected to a specific origin, that origin's events are included as well. The optional origins filter narrows the response to the requested origins (OR-combined) within what the brand can already see; an origin the brand is not entitled to is never returned, even if requested.

Property inclusion: When includeProperties is true, each event item includes its nested property tree, keyed by property name, with struct properties nesting their children under a recursive properties map. When omitted or false, only event-level metadata (name, displayName, origins) is returned.

Custom event exclusion: When excludeCustomEvents is true, brand-custom events are omitted. When omitted or false, custom events are included. Set this to true when only well-known standard events are needed, for a more predictable response size.

Rate Limiting: This endpoint is rate limited to 400 requests per minute.

post/event-metadata/query

Request

  • Base URL
    https://api.omnisend.com/api
  • URL
    https://api.omnisend.com/api/event-metadata/query
  • Auth
    • API key in header Authorization
    • or OAuth 2
      Client credentials
      Token URL: https://app.omnisend.com/oauth2/token

Headers

Omnisend-Versionstring required

API version that specifies the response format and behaviour

Request body

category'automations' | 'events' | 'segments' required

Event category, resolved against the requested Omnisend-Version

eventsstring[]

Optional list of event names to filter by

excludeCustomEventsboolean

When true, brand-custom events are omitted. When false or omitted, custom events are included. Set this to true when only well-known events are needed, for a more predictable response size.

includePropertiesboolean

When true, response items include the nested property tree. When false or omitted, only event-level metadata is returned.

originsstring[]

Optional list of origins to filter by (OR-combined)

Example request

{
  "category": "automations",
  "events": [
    "placed order"
  ],
  "excludeCustomEvents": true,
  "origins": [
    "shopify",
    "api"
  ]
}

Response

List of event metadata entries

Example response

{
  "events": [
    {
      "displayName": "Placed Order",
      "name": "placed order",
      "origins": [
        "shopify",
        "woocommerce"
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.