Skip to Content
CallMitraDocs
API referenceWebhooks

Update a webhook endpoint

Changes only the fields you send. Re-enabling a disabled endpoint clears its failure count.

PATCH
/api/v1/webhook-endpoints/{endpoint_id}

Changes only the fields you send. Re-enabling a disabled endpoint clears its failure count.

Authorization

headerX-API-Key<token>

Create in the console: Settings → API & webhooks.

Path Parameters

endpoint_id*Endpoint Id

Webhook endpoint id.

Request Body

application/json
  1. body
description?|

New label.

enabled?|

Enable or pause deliveries. Enabling clears the failure count and disabled reason.

events?array<string>|

Replaces the event filter. Empty means every event type.

url?|

New endpoint URL.

Response Body

OK

application/json
  1. response
success?Success

Always true on a 2xx response.

Defaulttrue
webhookEndpoint*
[key: string]?any
Example Request
curl -X PATCH 'https://api.callmitra.ai/api/v1/webhook-endpoints/string' \  -H 'Content-Type: application/json' \  -d '{  "enabled": true,  "events": []}'
Example Response
{  "success": true,  "webhookEndpoint": {    "consecutiveFailures": 0,    "createdAt": "2026-11-01T08:15:00+00:00",    "description": "CRM sync",    "enabled": true,    "events": [],    "id": "4f0c2a8e-7b1d-4c39-9a51-2d6e8f3b1c07",    "lastStatus": "HTTP 200",    "lastSuccessAt": "2026-11-15T10:42:07.512000+00:00",    "updatedAt": "2026-11-15T10:42:07.512000+00:00",    "url": "https://example.com/hooks/call-mitra"  }}