Webhooks

List Webhooks

Retrieve all webhook endpoints registered on your account, including delivery counters and status. Use this to find the id needed for the deliveries, retry and reactivate endpoints.

GEThttps://graph.sendcorex.com/v3.0/webhooks

Parameters

This endpoint takes no parameters.

Quick start

import axios from 'axios';

const response = await axios.get('https://graph.sendcorex.com/v3.0/webhooks', {
  headers: { Authorization: process.env.SENDCOREX_API_KEY },
});

console.log(response.data);

Response

{
  "success": true,
  "webhooks": [
    {
      "id": "wh_123",
      "webhookUrl": "https://example.com/hooks/sendcorex",
      "isActive": true,
      "events": null,
      "delivered": 1204,
      "pending": 2,
      "failed": 6,
      "createdAt": "2026-06-01T09:12:00.000Z"
    }
  ],
  "responseTime": "12ms"
}

Response fields

  • id

    Webhook endpoint ID. Use this in the other webhook endpoints.

  • webhookUrl

    The URL registered to receive events.

  • isActive

    Whether the endpoint is currently enabled.

  • events

    Subscribed events. null means all events.

  • delivered / pending / failed

    Delivery counters for this endpoint.

  • createdAt

    ISO 8601 creation timestamp.

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.