User events

Contains list method to get user's events.

API actions

API path: /history/user/.

list

Lists less than or equal to limit of tracker events filtered by event types (events) between from date/time and to date/time sorted by time field.

Added more information about this API call usage in our guide.

Parameters

name
description
type

from

Start date/time for searching.

string date/time

to

End date/time for searching. Must be after "from" date.

string date/time

events

Optional. Default: all. List of history types.

string array

limit

Optional. Default: history.maxLimit. Max count of entries in result.

int

ascending

Optional. Default: true. Sort ascending by time when it is true and descending when false.

boolean

only_emergency

Optional. Default: false. If true, only emergency events will be included.

boolean

only_unread

Optional. Default: false. If true, only unread events will be included.

boolean

add_tracker_label

Optional. Default: true. If true, tracker label will be added to "message" field.

boolean

add_tracker_files

Optional. Default: false. If true, tracker files info will be included.

boolean

If events (event types) not passed then list all event types.

Available event types can be obtained by /history/user/list action.

Default and max limit is 1000. (Note for StandAlone: this value configured by maxHistoryLimit config option).

Example

=== "cURL"

Response

  • list - list of zero or more history_entry objects which described in Tracker history entry.

  • limit_exceeded - boolean. It indicates if the response has exceeded the store_period limit, set in the user's tariff plan. Will be true if you request a period that exceeds what the user's plan allows.

  • total - int. Amount of history entries satisfied with conditions.

  • total_unread - int. Amount of unread history entries that satisfy the conditions.

Errors

  • 211 – Requested time span is too big - time span between from and to is more than report.maxTimeSpan days.

  • 212 – Requested limit is too big - limit is more than history.maxLimit.

Last updated

Was this helpful?