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.

POSThttps://graph.sendcorex.com/v3.0/webhooks/:id/retry-all
i

retriedCount is how many deliveries were queued, not how many were delivered. Use List Deliveries to follow the outcome.

Path parameters

  • idstringrequired

    Webhook 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

  • code

    DELIVERIES_RETRY_QUEUED on success.

  • retriedCount

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

  • 401INVALID_API_KEY

    The API key is invalid or revoked.