Your auth token is the signing key, and there is nothing to set up. Vobiz signs every callback automatically with your account’s auth token (visible in the Vobiz Console). There are no separate callback credentials or shared secrets to configure. Keep the auth token secret - anyone who has it can forge valid signatures. If you rotate it, signatures switch to the new token.
Signature headers
Vobiz sends the following headers with every callback:Signature versions compared
What each signature covers
The base URL is your callback URL with the query string removed.
How signatures are computed
V1 signature
- Take your callback URL and strip all query parameters to get the base URL.
- Take every parameter in the callback (the decoded form fields of the request body), sort them by name, and join them as
key=valuepairs separated by&. - Concatenate:
baseURL + sortedParams. - Compute
HMAC-SHA1of that string using your auth token as the key, then base64-encode it.
Python - V1
V2 signature
- Take your callback URL and strip all query parameters to get the base URL (e.g.
https://your-domain.com/webhook). - Concatenate:
baseURL + nonce(where nonce is the value ofX-Vobiz-Signature-V2-Nonce). - Compute
HMAC-SHA256of that string using your auth token as the key. - Base64-encode the result.
V3 signature
Identical to V2 except the nonce is joined to the base URL with a. separator:
https://your-domain.com/webhook?CallUUID=abc, the inputs are:
Multi-account (MA) variants
Signatures are sent on every voice callback, with no setup. This includes the
answer_url request, ring_url, hangup_url, and status callbacks. Fail closed:
reject a callback whose signature headers are missing or do not validate.Voice callbacks are delivered as application/x-www-form-urlencoded. V2 and V3
sign only the URL and a nonce; V1 also signs the decoded form parameters. No
signature hashes the raw body bytes, so a scheme that hashes the body will not
verify.X-Vobiz-Signature-MA-V2 / X-Vobiz-Signature-MA-V3. The algorithm is identical - only the key differs. This lets you verify callbacks using either the sub-account or the main account auth token.
Validation examples
Each example defines a V2 and a V3 validator and shows how to call one from a web handler. Every validator follows the same steps:- Read the signature and its nonce from the request headers.
- Strip the query string from the callback URL to get the base URL.
- Compute
HMAC-SHA256over the base URL and nonce (joined with.for V3), using your auth token as the key, and base64-encode it. - Compare the result to the received signature in constant time.
Sub-account callbacks
If your Vobiz account uses sub-accounts, callback requests include both the sub-account signature and the parent (main) account signature. You can validate using either auth token.
The algorithm for MA variants is identical - only the key differs. Use the same validation code, substituting your parent account auth token as the key.
Best practices
- Validate on every request. Reject any callback missing the signature headers with HTTP 403.
- Use HTTPS. Plaintext HTTP exposes the nonce and signature, which an attacker could replay before you process the request.
- Check the nonce is fresh (optional but recommended). Nonces are randomly generated per request, not time-based, so replay protection requires you to store and check seen nonces for a short window (e.g. 5 minutes).
- Validate V1 when you act on parameter values. V2 and V3 use HMAC-SHA256 but do not cover the parameters. V1 uses HMAC-SHA1, which is still sound as an HMAC, and is the only signature that does.
- Rotate your auth token if compromised. Rotating your auth token immediately invalidates all signatures computed with the old key.
Troubleshooting
Callbacks overview
Understand how Vobiz delivers callbacks and what parameters to expect.
Callback configurations
Configure callback URLs, methods, and retry behaviour for your applications.