Webhooks
Retry Delivery
Requeue a single failed or pending delivery for another attempt. If the parent webhook was disabled, it is automatically reactivated.
POST
https://graph.sendcorex.com/v3.0/webhooks/deliveries/:deliveryId/retryi
Get the deliveryId from List Deliveries.
Path parameters
deliveryIdstringrequiredID of the delivery to retry.
e.g.
"del_9f3a"
Quick start
import axios from 'axios';
const response = await axios.post(
'https://graph.sendcorex.com/v3.0/webhooks/deliveries/del_9f3a/retry',
{},
{ headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);
console.log(response.data);Response
{
"success": true,
"code": "DELIVERY_RETRY_QUEUED",
"deliveryId": "del_9f3a",
"responseTime": "19ms"
}Response fields
codeDELIVERY_RETRY_QUEUEDon success.deliveryIdID of the delivery that was requeued.
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.