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.

Search and buy a phone number

Twilio searches the live carrier catalog with available_phone_numbers('US').local.list(...), reads .phone_number off a result, then provisions it with incoming_phone_numbers.create(phone_number=...). Vobiz browses ready-to-buy stock with list_inventory_numbers(...) and buys by E.164 with purchase_from_inventory(...) - a deterministic two-step flow where the E.164 number is the key.

Manage a conference

Twilio tracks a room by its CF… SID and each leg by its CallSid. Vobiz uses the room name as the join key and a member_id per participant - get_conference returns the room details and its member list in one call, and every control is its own verb.
Record the whole room on demand by name - start and stop whenever you like:
The full per-verb map - mute/unmute, deaf/undeaf, kick/hangup, and the <Conference> element - is in Conferences.

More Twilio to Vobiz code snippets