Webhook operations require events:read. A company may have at most five endpoints.Register an endpoint#
POST and PATCH bodies must use Content-Type: application/json; another media type is refused with 415. Malformed or empty JSON returns 400 validation_failed without field.The URL must use HTTPS, port 443 or 8443, no user information, and no fragment. Control characters, whitespace, and \ are refused. The host must resolve only to public unicast addresses. Single-label hosts, localhost and its subdomains, names ending in .local or .internal, and top-level labels that are neither at least two ASCII letters nor prefixed with xn-- are refused. VeloConnect checks the destination when it is created, changed, and sent to. Redirects are not followed.The returned url is normalized. For example, https://hooks.example.com is returned as https://hooks.example.com/.The 201 response includes a whsec_… secret once. Store it before discarding the response. The HMAC key is the entire secret string, including the whsec_ prefix. Later reads expose only secret_last4. Duplicate event_types values are accepted and stored once.Create validation checks url before event_types. A webhook 400 validation_failed uses field: url or field: event_types; an empty or malformed body has no field. PATCH can also use field: enabled when a key tries to re-enable an endpoint owned by a revoked or expired key without first changing the URL, and field: body when the bound body is null.
Delivery body#
{
"id": "evt_01JDN8Q7A2V7Q4R5S6T7W8X9YZ",
"type": "call.answered",
"api_version": "v3",
"created_at": "2026-11-24T09:15:09Z",
"sequence": 3,
"data": { "call": { "id": "call_01JDN8Q6M2V7Q4R5S6T7W8X9YZ" } }
}
A test request uses the same envelope shape, but sends type: "ping", sequence: 0, and an empty object for data:{
"id": "evt_01JDN8Q7A2V7Q4R5S6T7W8X9YZ",
"type": "ping",
"api_version": "v3",
"created_at": "2026-11-24T10:05:00Z",
"sequence": 0,
"data": {}
}
ping is not a subscribable event type and never appears in GET /v3/voice/events.Verify a delivery#
The signed bytes are ASCII t, one dot, then the exact raw request body:HMAC-SHA256(UTF8(full_whsec_secret), ASCII(t + ".") || raw_body_bytes)
Compare the lowercase hexadecimal digest in constant time. Reject timestamps more than 300 seconds in the past or future. Persist VeloConnect-Event-Id and ignore an ID already processed successfully.Read and verify the raw body before JSON parsing. Re-serializing JSON changes the bytes and invalidates the signature. Pass the entire secret, including whsec_, to the HMAC function.
Acknowledge and retry behavior#
Return any 2xx status within 10 seconds. Other statuses, timeouts, and connection failures are retried. Each attempt is re-signed.The retry delays after failed attempts are approximately 10 seconds, 30 seconds, 2 minutes, 10 minutes, 30 minutes, then one hour for each remaining retry, up to 10 attempts total. Delivery is at least once.A destination refused by the safety check at send time is terminal for that delivery and counts as a consecutive failure. A failed name lookup is retried and also counts as a failure.
While the company's Telephony API is unavailable, deliveries pause for five minutes at a time without using an attempt.
410 Gone disables the endpoint immediately with disabled_reason: gone.
Ten consecutive failed deliveries across events disable it with disabled_reason: too_many_failures.
A successful delivery resets the consecutive-failure count.
| Value | Meaning |
|---|
owner | The owner or an API key switched the endpoint off. |
gone | The receiver answered 410 Gone. |
too_many_failures | Ten delivery failures occurred in a row across events. |
key_revoked | The key that created the endpoint, or last changed its URL, was revoked or expired. |
Test an endpoint#
POST /v3/voice/webhooks/{id}/test sends the signed ping shown above. It works even when the endpoint is disabled. Only one test can run at a time per endpoint, and at most five can start per minute.