Skip to content
Console
On this page

Analytics

List events for a time range with an environment-scoped key.

List the events recorded for your project environment, newest first. You can filter by event name or subject and page through up to 31 days at a time.

List events

A project administrator first enables Analytics for the project (service_enablements/analytics). Then use a server-side Sylphx secret key with analytics:read for the target environment. Keep the key out of browser code. Replace the organization, project, environment, and UTC timestamps in this example with your own:

Shell
curl --get 'https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/analytics_events' \
  --header "Authorization: Bearer $SYLPHX_API_KEY" \
  --data-urlencode 'start_time=2026-11-23T00:00:00Z' \
  --data-urlencode 'end_time=2026-11-24T00:00:00Z' \
  --data-urlencode 'page_size=100'

The response contains an analytics_events array. To get the next page, pass next_page_token as page_token with the same time range and filters. An empty token means you have reached the last page.

See the List analytics events API reference for the full request and response fields.