countOrgWebhooksDeliveries
GET https://{{host}}/api/v1/orgs/:org_id/webhooks/:webhook_id/events/count
Query Parameters
Name | Type | Description |
---|---|---|
org_id | string | org ID |
site_id | string | site ID |
webhook_id | string | webhook object ID |
status_code | int | HTTP response status code |
topic | string | webhook topic Topics Supported: - alarms - audits - device-updowns - occupancy-alerts - ping |
Response Parameters
Name | Type | Description |
---|---|---|
id | string | delivery ID |
req_headers | object | HTTP request headers |
req_url | string | HTTP request URL |
req_payload | object | HTTP request payload |
resp_headers | object | HTTP response headers |
resp_body | string | HTTP response body |
error | string | error message, if there is one |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
status_code | number | ||
topic | string | alarms / audits / device-updowns / occupancy-alerts / ping | |
limit | number |
RESPONSES
status: OK
{"results":[{"status":"success","count":20},{"status":"failure","count":1}],"limit":10,"start":1712085924,"end":1712172324,"distinct":"status","total":2}