Call rules
Check, limit, extend and end one-to-one calls from your server.
Calls are ordinary calls unless your server says otherwise. Your server can decide, before each call rings, whether it may ring and how long it may last, and it can add time or end a call.
The call check
Calls use your project's webhook endpoint and its secret, like rooms. To decide whether each call may ring and how long it may last, let an endpoint answer call checks: tick it when you add the endpoint on the Webhooks tab, or press Answer call checks on an existing one. That endpoint keeps receiving every other event as before.
Before each call rings, your endpoint gets a signed POST, the same envelope and signature as every webhook:
{
"id": "evt_...",
"version": "1.0.0",
"type": "call.check",
"project_id": "...",
"created_at": "2026-11-25T12:00:00.000Z",
"data": {
"call_id": "call_...",
"caller_identity": "123",
"caller_name": "Sam",
"callee_identity": "456",
"type": "voice",
"metadata": { "request_id": "..." }
}
}metadata is what the caller's app attached to the call. call_id is the id the call will have, so you can link your own records before it rings.
Answer with HTTP 200 and JSON:
| Answer | Result |
|---|---|
{"allow": true} | Rings as an ordinary call. |
{"allow": true, "max_duration_seconds": 180} | Rings, and ends 180 seconds after it is answered (10 to 14400). |
{"allow": false, "reason": "blocked", "message": "You can't call this person"} | Refused. The caller's app gets your message. |
reason is lowercased to letters, digits and _, at most 64 characters. message is at most 200 characters.
Your endpoint has 1.5 seconds to answer. A call check is never retried: no answer, an error, or an answer without allow refuses the call (check_unavailable). Each check shows in the endpoint's delivery log.
With no endpoint answering call checks, every call is allowed.
Verify the signature
Call checks are signed exactly like your other webhooks, with the endpoint's secret: X-Voxera-Signature: t=<timestamp>,v1=<hex>, an HMAC-SHA256 of <timestamp>.<X-Voxera-Event-Id>.<raw body>. There is no separate call check secret.
Warnings before the end
A call with a limit warns both sides 60 and 15 seconds before it ends. Both apps get each warning, so yours can show the time left and offer more.
Add time
Only your server can add time. Call the engine with your App ID and Server Secret:
curl -X POST https://your-engine.example.com/api/v1/calls/CALL_ID/extend \
-H "X-App-Id: $APP_ID" -H "X-App-Secret: $SERVER_SECRET" \
-H "Content-Type: application/json" \
-d '{"add_seconds": 120, "idempotency_key": "ext_123"}'add_secondsis 10 to 3600. A call cannot pass 14400 seconds in total.- The same
idempotency_keytwice is applied once, and the answer says"duplicate": true. 200returnscall_id,ends_at,remaining_secondsandmax_duration_seconds. Both sides see the new time.409means the call is no longer active, has no limit, or would pass 14400 seconds. Charge only after a200, or refund on a409.
End a call
curl -X POST https://your-engine.example.com/api/v1/calls/CALL_ID/end \
-H "X-App-Id: $APP_ID" -H "X-App-Secret: $SERVER_SECRET" \
-H "Content-Type: application/json" \
-d '{"reason": "policy"}'reason is one of moderation, policy or system. Both sides get the call ended with that reason.
Charging for calls
Charge from what your server decided and was told directly: the limit it set in the call check, and each 200 from the extend endpoint. Refund an extension that got a 409.
Call webhooks
Add a webhook endpoint to get call.accepted, call.ended, call.rejected, call.busy and call.missed, for your call log and your app's state. call.ended carries answered_at, duration_seconds and end_reason, and every call event carries metadata, max_duration_seconds and ends_at. See Webhooks.