Webhooks

Reactivate Webhook

Reactivate a webhook endpoint that was automatically disabled after consecutive delivery failures. Resets the failure counter.

POSThttps://graph.sendcorex.com/v3.0/webhooks/:id/reactivate
i

Fix the problem on your server first. If it keeps failing, the endpoint is disabled again.

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/reactivate',
  {},
  { headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);

console.log(response.data);

Response

{
  "success": true,
  "code": "WEBHOOK_REACTIVATED",
  "webhookId": "wh_123",
  "responseTime": "21ms"
}

Response fields

  • code

    WEBHOOK_REACTIVATED on success.

  • webhookId

    ID of the reactivated webhook endpoint.

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.