Retrieves webhook tracking logs.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
q | string Use this field to perform a partial search of text fields. |
Tracking webhook logs retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
// all parameters are optional const firstCollection = await api.tracking.getAllWebhookTrackingLogs(); // alternatively you can specify one or more of them const params = {limit: 20, offset: 100}; const secondCollection = await api.tracking.getAllWebhookTrackingLogs(params); // access the collection items, each item is a Member secondCollection.items.forEach(entry => console.log(entry.fields.eventType));
[- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "eventType": "account-password-reset-requested",
- "entityId": "string",
- "url": "string",
- "method": "POST",
- "headers": {
- "My-Header": "Cool-Value"
}, - "responseCode": 0,
- "responseBody": "string",
- "payload": "string",
- "source": "webhooks",
- "attempt": 0,
- "sentTime": "2019-08-24T14:15:22Z",
- "initiatedTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
]