Retrieves a list of webhooks.
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. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
List of webhooks retrieved.
method required | string Enum: "GET" "POST" "PUT" "PATCH" "DELETE" |
url required | string <uri> URL that triggers when a specified event occurs. |
credentialHash required | string Hash from credentials to use for authentication by the specified URL. |
id | string <= 50 characters ID of the webhook. |
eventsFilter | Array of strings (GlobalWebhookEventType) Default: [] Array of system event types. |
status | string (OnOff) Default: "active" Enum: "active" "inactive" |
Array of objects (WebhookHeader) Webhook headers. | |
body | string or null Webhook request body.
If this value is Invalid placeholders render as an empty strings.
For example, For more information, see Placeholders. |
filter | string Filter that determines whether to send the webhook.
This field requires a special format.
Use For more information, see Using filters. |
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. |
updatedTime | string <date-time> Date and time which updates automatically when the resource is updated. |
Array of objects (SelfLink) Related links. | |
Unauthorized access. Invalid credentials used.
Access forbidden.
// all parameters are optional const firstCollection = await api.webhooks.getAll(); // alternatively you can specify one or more of them const params = {limit: 20, offset: 100, sort: '-createdTime'}; const secondCollection = await api.webhooks.getAll(params); // access the collection items, each item is a Member secondCollection.items.forEach(webhook => console.log(webhook.fields.name));
[- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "eventsFilter": [ ],
- "status": "active",
- "method": "GET",
- "headers": [
- {
- "name": "string",
- "status": "active",
- "value": "value1"
}
], - "credentialHash": "string",
- "body": "string",
- "filter": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
]