Changelog
The Analytics changelog is a list of recent and upcoming changes to our Analytics API. It includes backwards-compatible changes, schema previews, and upcoming breaking changes.
Breaking changes include changes that will break existing queries or could affect the runtime behavior of clients. For a list of breaking changes and when they will occur, see our breaking changes labels.
⚠️ Breaking changes for 2023-12-01
Effective December 1st 2023, the time_gt
and time_lt
parameters will be mandatory on the analytics endpoint.
Before
curl -X POST \
'https://developer.swapcard.com/event-admin/export/analytics' \
-H 'Content-Type: application/json' \
-H 'Authorization: ACCESS_TOKEN_HERE' \
-d '{"event_ids": [List of event ids]}'
After
curl -X POST \
'https://developer.swapcard.com/event-admin/export/analytics' \
-H 'Content-Type: application/json' \
-H 'Authorization: ACCESS_TOKEN_HERE' \
-d '{
"event_ids": [List of event ids],
"time_gt": "Time interval" # ex: 2022-09-01T00:00:00.000Z,
"time_lt": "Time interval" # ex: 2022-10-01T00:00:00.000Z
}'