Webhooks
Reactivate Webhook
Reactivate a webhook endpoint that was automatically disabled after consecutive delivery failures. Resets the failure counter.
POST
https://graph.sendcorex.com/v3.0/webhooks/:id/reactivatei
Fix the problem on your server first. If it keeps failing, the endpoint is disabled again.
Path parameters
idstringrequiredWebhook 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
codeWEBHOOK_REACTIVATEDon success.webhookIdID 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.
- 401
INVALID_API_KEYThe API key is invalid or revoked.