List events
Changed onThere may be a delay of several seconds between writing an event and its appearance in this list.
filter[occurred_at][gte] and filter[occurred_at][lt] are required and may be at most 1 day apart; otherwise the request is 400 parameter_invalid. To sync every event, see Syncing.
Expanding a large page can exceed the 5 MiB response cap and return 400 expand_limit_exceeded. Request a smaller page[limit] or fewer expansions.
Request
- Base URLhttps://api.pscrpt.com/v1
- URLhttps://api.pscrpt.com/v1/events
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.pscrpt.com/oauth/authorizeToken URL: https://api.pscrpt.com/oauth/token scopes: events:read
Query parameters
Start of the window, inclusive.
End of the window, exclusive. At most 1 day after filter[occurred_at][gte].
Sort field; a leading - is descending and its absence is ascending. Allowed field: occurred_at. Default: -occurred_at.
Headers
Overrides the key's pinned API revision for this request.
Response
One page of events.
Example response
{
"data": [
{
"event_type": {
"first_seen_at": "2026-07-23T17:32:01.123456Z"
},
"occurred_at": "2026-07-23T17:32:01.123456Z",
"profile": {
"consents": [
{
"channel": "sms",
"consented_at": "2026-07-23T17:32:01.123456Z",
"identifier": {
"created_at": "2026-07-23T17:32:01.123456Z",
"type": "email",
"updated_at": "2026-07-23T17:32:01.123456Z",
"verified_at": "2026-07-23T17:32:01.123456Z"
},
"method": "checkout",
"updated_at": "2026-07-23T17:32:01.123456Z"
}
],
"created_at": "2026-07-23T17:32:01.123456Z",
"identifiers": [
{
"created_at": "2026-07-23T17:32:01.123456Z",
"type": "email",
"updated_at": "2026-07-23T17:32:01.123456Z",
"verified_at": "2026-07-23T17:32:01.123456Z"
}
],
"updated_at": "2026-07-23T17:32:01.123456Z"
},
"received_at": "2026-07-23T17:32:01.123456Z",
"source": "api"
}
]
}Changes
- breaking
added the new required
queryrequest parameterfilter[occurred_at][lt] - breaking
the
queryrequest parameterfilter[occurred_at][gte]became required - warning
deleted the
queryrequest parameterfilter[occurred_at][lte]
- breaking
- info
endpoint added
- info