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 fields
The body is a JSON array. It has no wrapper object.Rules for the client
- Cache the list. Event names change only when you track a new event.
- To read the properties of one event name, send the name as
eventtoPOST /{tenantAlias}with a smallsize. Read Query events. - 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.
- If the API returns
429, waitRetry-Afterseconds, then retry one time. Read Query API for the rate limits and the error table.