Webhooks
List deliveries
What was sent to an endpoint, and how each delivery went.
https://api.sangtao.ai/v2/webhooks/{id}/deliveriesAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
The last 30 days of deliveries to this endpoint, newest first.
Query parameters
statusstringOnly this status
Available options:
pendingsucceededfailedcanceledtypestringOnly this event type
Available options:
image.completedimage.failedvideo.completedvideo.failedpost.publishedpost.failedsocial_account.needs_attentionwebhook.testsincestringCreated at or after (ISO 8601)
untilstringCreated at or before (ISO 8601)
pagenumberFrom 1
pageSizenumber20 by default, at most 100. The total is in X-Total-Count
Response
idstringrequiredThe delivery, dlv_…
eventIdstringrequiredThe event, evt_… — the same on a retry
eventTypestringrequirede.g. image.completed
statusstringrequiredcanceled: the endpoint was deleted or turned off before it went
Available options:
pendingsucceededfailedcanceledattemptCountnumberrequiredAttempts so far
lastHttpStatusnumber | nullWhat your URL answered last
lastErrorstring | nullWhy the last attempt failed
nextAttemptAtstring | nullThe next retry. Only while pending
createdAtstringrequiredWhen the delivery was queued
completedAtstring | nullWhen it ended: succeeded, failed or canceled
Errors
| Status | errorCode | When |
|---|---|---|
| 404 | WEBHOOK_NOT_FOUND | No endpoint of yours with this id |
/webhooks/{id}/deliveriescurl "https://api.sangtao.ai/v2/webhooks/whk_4nP8rT2xK/deliveries?status=failed&page=1&pageSize=20" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": [
{
"id": "dlv_5Vt1kRm9P",
"eventId": "evt_8Kq2mXa7T",
"eventType": "image.completed",
"status": "failed",
"attemptCount": 8,
"lastHttpStatus": 500,
"lastError": "HTTP 500",
"nextAttemptAt": null,
"createdAt": "2026-11-10T09:43:31Z",
"completedAt": "2026-11-12T00:00:00Z"
}
]
}/webhooks/{id}/deliveriescurl "https://api.sangtao.ai/v2/webhooks/whk_4nP8rT2xK/deliveries?status=failed&page=1&pageSize=20" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": [
{
"id": "dlv_5Vt1kRm9P",
"eventId": "evt_8Kq2mXa7T",
"eventType": "image.completed",
"status": "failed",
"attemptCount": 8,
"lastHttpStatus": 500,
"lastError": "HTTP 500",
"nextAttemptAt": null,
"createdAt": "2026-11-10T09:43:31Z",
"completedAt": "2026-11-12T00:00:00Z"
}
]
}