Webhooks
Retry a delivery
Send a delivery’s event again.
https://api.sangtao.ai/v2/webhooks/{id}/deliveries/{deliveryId}/retryAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
deliveryIdstringrequiredThe deliveryId in the path.
Queues the same event again, whatever the delivery’s status: a new delivery (new dlv_…), the same event id — so your deduplication still holds.
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
Answers 202, status pending.
Errors
| Status | errorCode | When |
|---|---|---|
| 404 | WEBHOOK_NOT_FOUND | No endpoint of yours with this id |
| 404 | DELIVERY_NOT_FOUND | No such delivery to this endpoint |
| 409 | WEBHOOK_DISABLED | The endpoint is turned off — PATCH enabled: true first |
/webhooks/{id}/deliveries/{deliveryId}/retrycurl -X POST "https://api.sangtao.ai/v2/webhooks/whk_4nP8rT2xK/deliveries/dlv_5Vt1kRm9P/retry" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "dlv_9Rx3qTa6M",
"eventId": "evt_8Kq2mXa7T",
"eventType": "image.completed",
"status": "pending",
"attemptCount": 0,
"lastHttpStatus": null,
"lastError": null,
"nextAttemptAt": "2026-11-10T10:00:00Z",
"createdAt": "2026-11-10T10:00:00Z",
"completedAt": null
}
}/webhooks/{id}/deliveries/{deliveryId}/retrycurl -X POST "https://api.sangtao.ai/v2/webhooks/whk_4nP8rT2xK/deliveries/dlv_5Vt1kRm9P/retry" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "dlv_9Rx3qTa6M",
"eventId": "evt_8Kq2mXa7T",
"eventType": "image.completed",
"status": "pending",
"attemptCount": 0,
"lastHttpStatus": null,
"lastError": null,
"nextAttemptAt": "2026-11-10T10:00:00Z",
"createdAt": "2026-11-10T10:00:00Z",
"completedAt": null
}
}