List webhook deliveries
Lists the deliveries of one endpoint, newest first, kept for 30 days. Each entry shows the attempt count, status, HTTP status and a short error. Filter by status to find failures.
GET /v1/webhook-endpoints/{endpoint_id}/deliveries
| Permission | webhooks:read (all permissions) |
| Risk | Read |
| Idempotency-Key | Not needed (how it works) |
| Safe to repeat | Safe: the call only reads. |
| Rate limit class | read (120 requests per minute per key) |
| Confirmation | None |
| MCP tool | Not available in MCP |
| Since version | 2026-10-25 |
#What it does
- Only reads data. It changes nothing and sends nothing.
#Request
Path parameters
| Name | Type | Description |
|---|---|---|
endpoint_id | string | Webhook endpoint ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Items per page (1 to 100, default 20). 1 to 100; default 20 |
cursor | string | no | next_cursor from the previous page. Opaque; only valid with the same filters. up to 300 characters |
status | string | no | Only deliveries with this status. one of: pending, sending, delivered, failed |
#Lists, filters and sorting
- Items per page:
limitfrom 1 to 100, default 20 (MCP: default 20, maximum 50). - Next page: send
next_cursorof the answer ascursor. The cursor only works with the same filters. See Pagination. - Filters:
status. - Sorting: newest first (
created_atdescending, theniddescending); no other order.
#Examples
curl "https://api.smartchat.marketing/v1/webhook-endpoints/whe_0f8c1a2e4b7d4c3e9a5b6d7e8f901234/deliveries?status=failed&limit=20" \
-H "Authorization: Bearer $SMARTCHAT_API_KEY"import os
import requests
response = requests.get(
"https://api.smartchat.marketing/v1/webhook-endpoints/whe_0f8c1a2e4b7d4c3e9a5b6d7e8f901234/deliveries",
headers={"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"]},
params={
"status": "failed",
"limit": "20",
},
)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.smartchat.marketing/v1/webhook-endpoints/whe_0f8c1a2e4b7d4c3e9a5b6d7e8f901234/deliveries?status=failed&limit=20", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
},
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());Response (200):
{
"object": "list",
"data": [
{
"object": "webhook_delivery",
"id": "whd_7a1b2c3d4e5f40718293a4b5c6d7e8f9",
"endpoint_id": "whe_0f8c1a2e4b7d4c3e9a5b6d7e8f901234",
"event_id": "evt_0f8c1a2e4b7d4c3e9a5b6d7e8f905678",
"type": "contact.created",
"attempt": 1,
"status": "delivered",
"http_status": 200,
"error": null,
"duration_ms": 182,
"next_attempt_at": null,
"created_at": "2026-10-25T09:44:59Z",
"finished_at": "2026-10-25T09:45:00Z"
}
],
"has_more": false,
"next_cursor": null,
"url": "/v1/webhook-endpoints/whe_0f8c1a2e4b7d4c3e9a5b6d7e8f901234/deliveries"
}#Response
Status 200. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.
| Name | Type | Description |
|---|---|---|
object | string | Always "list". always list |
data | array of object | The items of this page. up to 100 items |
data[].object | string | Always "webhook_delivery". always webhook_delivery |
data[].id | string | Delivery ID (also sent in the SmartChat-Delivery-Id header). |
data[].endpoint_id | string | Endpoint that received or will receive the event. |
data[].event_id | string or null | Event ID (also in the event body as id). Null for test pings. up to 64 characters |
data[].type | string | Event type, for example contact.created. up to 60 characters |
data[].attempt | integer | Number of attempts made so far (maximum 9). 0 to 9 |
data[].status | string | pending = waiting for the next attempt, sending = in progress, delivered = your server answered 2xx, failed = no more attempts. one of: pending, sending, delivered, failed |
data[].http_status | integer or null | HTTP status of the last attempt. Null if your server did not answer. 0 to 599 |
data[].error | string or null | Short reason of the last failure, for example HTTP 500 or timeout. Never contains the body of your answer. up to 200 characters |
data[].duration_ms | integer or null | Duration of the last attempt in milliseconds. 0 to 3600000 |
data[].next_attempt_at | string or null | When the next attempt is planned. Null if none is planned. up to 40 characters; format date-time |
data[].created_at | string | When the delivery was queued. up to 40 characters; format date-time |
data[].finished_at | string or null | When the delivery reached a final state. up to 40 characters; format date-time |
has_more | boolean | True if another page exists. |
next_cursor | string or null | Pass this as 'cursor' to get the next page; null on the last page. up to 300 characters |
url | string | The path of this list. up to 200 characters |
total_count | integer | Approximate total; may be inaccurate. Only present where cheap to compute. 0 to 1000000000 |
#Errors
| Code | Status | When |
|---|---|---|
invalid_cursor | 400 | The cursor is expired, forged or belongs to other filters. |
api_key_expired | 401 | This API key has expired. |
api_key_invalid | 401 | This API key is not valid. |
api_key_revoked | 401 | This API key was revoked. |
authentication_required | 401 | No API key was sent. Send 'Authorization: Bearer <key>'. |
insufficient_scope | 403 | This key lacks a required permission. |
ip_not_allowed | 403 | This IP address is not allowed for this key. |
endpoint_not_found | 404 | No webhook endpoint with this ID exists in this account. |
validation_failed | 422 | A field is not valid. |
rate_limited | 429 | Too many requests. Wait and try again. |
internal_error | 500 | Something went wrong on our side. |
All errors use one format.