Update a webhook endpoint
Changes only the fields you send. Re-enabling a disabled endpoint clears its failure count.
Changes only the fields you send. Re-enabling a disabled endpoint clears its failure count.
X-API-Key<token>Create in the console: Settings → API & webhooks.
endpoint_id*Endpoint IdWebhook endpoint id.
application/json- 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.
OK
application/json- response
success?SuccessAlways true on a 2xx response.
truewebhookEndpoint*[key: string]?anycurl -X PATCH 'https://api.callmitra.ai/api/v1/webhook-endpoints/string' \ -H 'Content-Type: application/json' \ -d '{ "enabled": true, "events": []}'{ "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" }}Set an agent's post-call webhook PUT
After each of this agent's calls, a summary is POSTed to `url` (used when the campaign has no webhook of its own). `trigger` picks which calls are sent: `every`, `completed` or `voicemail`. Send an empty `url` to turn it off. Omit `secret` to keep the stored one; the secret is never returned (`hasSecret` says whether one is set). The change applies to the live agent at once. A URL that does not point at a public internet address is refused with `agent_state_blocked`.
Get a WhatsApp message GET
Current delivery status of a message you sent. Poll it to follow `queued` → `sent` → `delivered` → `read` (or `failed`).