Skip to main content
GET/v1/events

List events

Returns events filtered by source, name, status, user, or time range.

Authentication

Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.

Query parameters

NameTypeRequiredDescription
event_namestringNoFilter by event name.
starttimestampNoInclusive range start.
endtimestampNoExclusive range end.
limitintegerNoMaximum rows to return.

Response schema · 200

{
  "events": [
    {
      "id": "evt_123",
      "event_name": "purchase",
      "status": "delivered"
    }
  ],
  "next_cursor": "cur_123"
}

Response example

{
  "events": [
    {
      "id": "evt_123",
      "event_name": "purchase",
      "status": "delivered"
    }
  ],
  "next_cursor": "cur_123"
}

Code examples

curl https://api.tracklayer.com/v1/events \
  -H "Authorization: Bearer ${API_KEY}"

Try it out

Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.

Open API key settings

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.