Webhooks

Retry Delivery

Requeue a single failed or pending delivery for another attempt. If the parent webhook was disabled, it is automatically reactivated.

POSThttps://graph.sendcorex.com/v3.0/webhooks/deliveries/:deliveryId/retry
i

Get the deliveryId from List Deliveries.

Path parameters

  • deliveryIdstringrequired

    ID 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

  • code

    DELIVERY_RETRY_QUEUED on success.

  • deliveryId

    ID 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.

  • 401INVALID_API_KEY

    The API key is invalid or revoked.