Skip to main content
Part of the Twilio to Vobiz code snippets: each task shows the Twilio code and the equivalent Vobiz code in Python and Node - copy the Vobiz tab. The snippets use the client from Set up the client.
Set your credentials once: AUTH_ID is your Vobiz Auth ID (MA_…), AUTH_TOKEN is your Auth Token. In the Vobiz SDK, api_key is the Auth ID, and every account-scoped method takes that auth_id explicitly.

List call records

Completed-call history is a first-class cdr resource on Vobiz, with rich filters for reporting.
Filter CDRs by from_number, to_number, call_direction, hangup_cause, bridge_uuid, or sip_call_id - purpose-built for reporting. See Voice Call API for the live-vs-history split (live_calls for in-flight legs, cdr for completed history).

Validate a webhook signature

Both platforms sign inbound webhooks so you can prove the request came from them. Twilio’s RequestValidator rebuilds the full URL plus every sorted POST field and HMAC-SHA1s it against X-Twilio-Signature. Vobiz signs a short, deterministic string - baseURL + "." + nonce (query stripped) - with HMAC-SHA256, and sends it as X-Vobiz-Signature-V3 with the random nonce in X-Vobiz-Signature-V3-Nonce. No param-sorting step, reproducible in any language with the standard library.
On sub-account callbacks Vobiz also adds X-Vobiz-Signature-MA-V3, signed with the parent (main-account) token, so a parent can verify child traffic with the same validator. Full mapping and the Node version: webhooks & signatures.

Handle errors

Catch the Vobiz error types (all subclasses of ApiError) the same way you caught Twilio’s TwilioRestException - with the HTTP status and response body available on the exception.
Full verb table: TwiML → VobizXML.

More Twilio to Vobiz code snippets