List of Events
Retrieve a list of Events
Parameter
Accessible via URL https://api.channel.io/open/v5/users/{userId}/events
and HTTP GET
Parameter | Example | Required | Description | Parameter type |
---|---|---|---|---|
userId | 5ec3a01fe2b3f4d2cbc5 | Required | ID of User | Path |
sortOrder | desc (or asc) | Required | Sorting order. Default value is desc. (descending order means latest message first) | Query |
since | 123124122 | Optional | Epoch time in microseconds of the first message to be retrieved | Query |
limit | 25 | Optional | Restrict the maximum number of webhooks to be retrieved | Query |
Example
GET https://api.channel.io/open/v5/users/5ec3a01fe2b3f4d2cbc5/events
Response
Returns a list of Event
objects.
{
"prev": "string",
"next": "string",
"events": [
{
"userId": "string",
"id": "string",
"channelId": "string",
"name": "string",
"property": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"createdAt": 1624414650058,
"expireAt": 1624414650058,
"version": 0
}
]
}
Updated about 1 year ago