Skip to main content
GET /events/{tenantAlias} returns an array of strings. Each string is an eventName that the tenant has stored. Use it to find out what you track, or to build an event selector in your own dashboard. The path is relative to the base URL https://queryapis.grainql.com/v1/api/query.

Request

{tenantAlias} is the tenant alias that the dashboard shows, not the tenant UUID. The request has no body and no query parameters.

Example

Response:

Response fields

The body is a JSON array. It has no wrapper object.

Rules for the client

  1. Cache the list. Event names change only when you track a new event.
  2. To read the properties of one event name, send the name as event to POST /{tenantAlias} with a small size. Read Query events.
  3. To make sure that every expected event arrives, compare the list with the names in your tracking plan. A missing name means that no event with that name reached Grain.
  4. If the API returns 429, wait Retry-After seconds, then retry one time. Read Query API for the rate limits and the error table.

Limits