Send a test event
Sends a signed `webhook.test` event to the endpoint now, whatever its event filter, and returns the delivery with the endpoint's answer. A failed test is retried like any other delivery. Tests and redeliveries share a cap of 10 per endpoint per minute (429 with `Retry-After`).
Sends a signed webhook.test event to the endpoint now, whatever its event filter, and returns the delivery with the endpoint's answer. A failed test is retried like any other delivery. Tests and redeliveries share a cap of 10 per endpoint per minute (429 with Retry-After).
X-API-Key<token>Create in the console: Settings → API & webhooks.
endpoint_id*Endpoint IdWebhook endpoint id.
OK
application/json- response
success?SuccessAlways true on a 2xx response.
truewebhookDelivery*[key: string]?anycurl -X POST 'https://api.callmitra.ai/api/v1/webhook-endpoints/string/test'{ "success": true, "webhookDelivery": { "attempts": 1, "createdAt": "2026-11-15T10:41:47.106000+00:00", "deliveredAt": "2026-11-15T10:42:07.512000+00:00", "endpointId": "4f0c2a8e-7b1d-4c39-9a51-2d6e8f3b1c07", "eventId": "evt_0a7e3d91c5b24f6c8e1d2b9a4f7c6e53", "eventType": "webhook.test", "id": "0d9a4e61-3c7b-4f2a-b815-6e2c9d7f0a38", "lastAttemptAt": "2026-11-15T10:42:07.512000+00:00", "lastError": "", "lastStatusCode": 200, "latencyMs": 184, "payload": { "apiVersion": "v1", "createdAt": "2026-11-15T10:45:00.000000Z", "data": { "endpointId": "4f0c2a8e-7b1d-4c39-9a51-2d6e8f3b1c07", "message": "This is a test event from Call Mitra." }, "id": "evt_0a7e3d91c5b24f6c8e1d2b9a4f7c6e53", "type": "webhook.test" }, "responseSnippet": "ok", "status": "delivered" }}Rotate an endpoint's signing secret POST
Returns a new `secret` once. For the next 24 hours deliveries carry signatures from both the new and the old secret in `webhook-signature`, so you can switch without dropping events.
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`.