Skip to main content
GET/users/:id/events/

Get user events

You can return all user’s events.

Attributes

Optional unless marked required

idinteger
A unique identifier for the user which is given by User automatically.
LookupDescriptionExample usage
count_fromA date from when stats should be counted?count_from=2021-05-16
count_toA date utill stats should be counted?count_from=2022-05-16

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/users/:id/events/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"client": 1952,
"timestamp": "2026-11-17T15:13:49Z",
"id": 27,
"items": [
{
"name": "plan",
"name_std": "plan",
"value": "pro",
"type": "string"
},
{
"name": "seats",
"name_std": "seats",
"value": "10",
"type": "string"
}
],
"event": "plan_upgraded",
"event_id": 47
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].clientinteger
ID of the contact.
results[].timestampstring (date-time)
When it happened, ISO 8601.
results[].idinteger
ID of the event occurrence.
results[].itemsarray of objects
Event data: one object per field with a value, each with name, name_std, value and type, sorted by name.
results[].items[].namestring
Name of the event field.
results[].items[].name_stdstring
Standardized name of the field, used as its key in the API.
results[].items[].valuestring
Value of the field in this occurrence.
results[].items[].typestring
Value type of the field: boolean, datetime, number, string or json.
results[].eventstring
Name of the event.
results[].event_idinteger
ID of the event.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.