Calculate usage metrics for an identity.
GET https://api.jsonpad.io/identities/{identityId}/statscurl https://api.jsonpad.io/identities/fc65a933-c450-46b6-8b79-c787976227f9/stats \
-H "Content-Type: application/json" \
-H "x-api-token: <YOUR TOKEN>"identityIdstringAn identity id.daysnumberhttps://api.jsonpad.io/identities/faa48b1d-c818-4eda-9a89-f5763c62028a/stats?days=7The number of days to collect stats for. The default value is 7 and the maximum is 90.x-api-tokenstringYour API token.No request body
{events: {total: 4totalThisPeriod: 4metrics: [0: {date: "2026-09-03T11:30:32.459Z"count: 3types: {identity-created: 2identity-updated: 1}}1: {date: "2026-09-04T11:30:32.460Z"count: 1types: {identity-updated: 1}}2: {date: "2026-09-05T11:30:32.460Z"count: 0types: {}}]}}eventsobjectEvent metrics for this identity.totalnumberThe total number of events for this identity.totalThisPeriodnumberThe total number of events for this identity during the requested period.metricsarrayA list of metrics objects for each day in the requested period.metrics[].datestringThe date of this metrics entry in ISO 8601 format.metrics[].countnumberThe total number of events on this date.metrics[].typesobjectThe total number of events on this date, broken down by type.
No response headers
2024-12-12