Webhooks
Retry All Failed
Requeue every failed or pending delivery for a webhook endpoint in one call. Deliveries are queued asynchronously in the background, so this endpoint returns immediately even for large batches.
POST
https://graph.sendcorex.com/v3.0/webhooks/:id/retry-alli
retriedCount is how many deliveries were queued, not how many were delivered. Use List Deliveries to follow the outcome.
Path parameters
idstringrequiredWebhook endpoint ID.
e.g.
"wh_123"
Quick start
import axios from 'axios';
const response = await axios.post(
'https://graph.sendcorex.com/v3.0/webhooks/wh_123/retry-all',
{},
{ headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);
console.log(response.data);Response
{
"success": true,
"code": "DELIVERIES_RETRY_QUEUED",
"retriedCount": 47,
"responseTime": "14ms"
}Response fields
codeDELIVERIES_RETRY_QUEUEDon success.retriedCountNumber of deliveries queued for retry.
Errors
HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.
- 401
INVALID_API_KEYThe API key is invalid or revoked.