GET
/
users
/
{id}
/
metrics
/
{key}
/
event-summary
curl --request GET \
  --url https://app.trophy.so/api/users/{id}/metrics/{key}/event-summary \
  --header 'X-API-KEY: <api-key>'
[
  {
    "date": "2024-01-01",
    "total": 100,
    "change": 100
  },
  {
    "date": "2024-01-02",
    "total": 300,
    "change": 200
  },
  {
    "date": "2024-01-03",
    "total": 600,
    "change": 300
  }
]

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

ID of the user.

key
string
required

Unique key of the metric.

Query Parameters

aggregation
enum<string>
required

The time period over which to aggregate the event data.

Available options:
daily,
weekly,
monthly
startDate
string
required

The start date for the data range in YYYY-MM-DD format. The startDate must be before the endDate, and the date range must not exceed 400 days.

endDate
string
required

The end date for the data range in YYYY-MM-DD format. The endDate must be after the startDate, and the date range must not exceed 400 days.

Response

200
application/json

Successful operation

The response is of type object[].