Vobiz Applications & Endpoints skill
Two related but distinct concepts:
- Application: a named container that holds the
answer_url/hangup_urlwebhooks (callbacks). Phone numbers and endpoints get attached to an application so calls fire the configured webhooks. - Endpoint: a SIP user account (
username+password+alias) for soft-phones, browser WebRTC clients, or IP desk-phones to register with Vobiz.
Base URL: https://api.vobiz.ai. Auth headers on every request: X-Auth-ID + X-Auth-Token (your Auth ID / Auth Token).
Application vs Endpoint - which do I need?
- Inbound call to a phone number (DID) → create an Application, then attach the number to it.
- A person or device that needs to place/receive calls (browser, softphone, desk phone, AI agent) → create an Endpoint, then attach an Application to the endpoint for its call-handling logic.
- Both: number routes inbound to an Application; that Application's VobizXML can
<Dial><User>the endpoint'ssip_urito ring the device.
Application endpoints
| Op | Path | Notes |
|---|---|---|
| Create | POST /api/v1/Account/{auth_id}/Application/ |
Body: {app_name, answer_url, answer_method, hangup_url?, hangup_method?, fallback_answer_url?, ...}. All three of app_name/answer_url/answer_method are required. Returns 201 with app_id (string) and message: "created". |
| List | GET /api/v1/Account/{auth_id}/Application/ |
Paginated: limit (default 20, max 100), offset (default 0). Response: meta{limit,offset,total_count,next,previous} + objects[]. |
| Get | GET /api/v1/Account/{auth_id}/Application/{app_id}/ |
404 if unknown. |
| Update | POST /api/v1/Account/{auth_id}/Application/{app_id}/ |
(yes, POST not PUT.) Partial update; omitted fields unchanged. Returns 200 {api_id, message: "changed"}. sub_account cannot be changed. |
| Delete | DELETE /api/v1/Account/{auth_id}/Application/{app_id}/ |
204 on success; 409 if numbers are still attached. |
Attach / detach a number (different path - under numbers, not Application)
| Op | Path |
|---|---|
| Attach | POST /api/v1/Account/{auth_id}/numbers/{number}/application body {application_id} (the app_id) |
| Detach | DELETE /api/v1/Account/{auth_id}/numbers/{number}/application (no body) |
{number} is the E.164 number URL-encoded (+ → %2B, e.g. %2B14155551234). Both return 200 with message, number, and the full application object. These two routes are documented in applications/attach-number and applications/detach-number (not in openapi.yaml).
Endpoint endpoints
| Op | Path | Notes |
|---|---|---|
| Create | POST /api/v1/Account/{auth_id}/Endpoint/ |
Body: {username, password, alias, application} - application is the numeric app_id. Returns 201 with endpoint_id; the endpoint's sip_uri is sip:<username>@registrar.vobiz.ai. |
| List | GET /api/v1/Account/{auth_id}/Endpoint/ |
Filters: username__contains/__exact/__startswith, alias__contains/__exact, application_id__exact, application_id__isnull, sub_account, plus limit (default 20, max 100) / offset. |
| Get | GET /api/v1/Account/{auth_id}/Endpoint/{endpoint_id}/ |
Adds a sip_registration block (contact, expires, user_agent, received, path) when sip_registered == "true". |
| Update | POST /api/v1/Account/{auth_id}/Endpoint/{endpoint_id}/ |
(yes, POST not PUT.) Editable: password, alias, application, allow_voice, allow_message, allow_video. 202 on success, empty body. |
| Delete | DELETE /api/v1/Account/{auth_id}/Endpoint/{endpoint_id}/ |
204 on success. Disconnects registered devices immediately. |
Default-app semantics
default_number_app: true→ any newly created number that has noapp_idis auto-routed to this application.default_endpoint_app: true→ any newly created endpoint with noapplicationis auto-routed to this application.default_appis a separate boolean marking the account-level default application (defaultfalse).- Setting a new default does not retroactively re-route numbers/endpoints created earlier - it only affects ones created afterward without an explicit app. Deleting a default app removes the auto-routing default; set a new one first.
Public SIP URI
- Each application exposes a
sip_uri(sip:<app_id>@app.vobiz.aiin API responses).public_uri: falseby default. - Set
public_uri: trueonly when an external SIP system must reach the application'ssip_uridirectly (e.g. routing from a third-party PBX/carrier into your app). Leave itfalsefor ordinary DID-driven inbound flows.
Pitfalls
- Path casing: capital
Account+ capitalApplication/Endpoint. Lowercase segments fail. (Attach/detach is the exception: it uses lowercasenumbers.) - Update is POST, not PUT/PATCH - Vobiz convention for both Application and Endpoint.
app_nameaccepts letters, numbers,-and_only; a malformed URL or missing required field returns400.- SIP username: documented constraint is alphanumeric only; treat
-/_/spaces as risky (may 400). It is unique per account - a duplicate username returns409. Username is immutable after creation; to rename, delete and recreate. - Locked endpoint fields:
username,endpoint_id,domain,allow_same_domain,allow_other_domains,allow_phones,allow_appscannot be changed via update. To change them, recreate the endpoint. - Password is write-only - never returned in any response. After a password change, every SIP client must re-register with the new credential or it drops.
sip_registeredis a string ("true"/"false"), not a boolean - compare against the string.- Deleting an app in use: returns
409if phone numbers are still attached. Detach all numbers first (and repoint endpoints bound to it), then delete. - Attaching an already-linked number: attaching overwrites the previous application binding (re-points routing); it does not error. Detaching a number with no application is a no-op. Unknown number or
application_idreturns404. - Fallback:
fallback_answer_urlfires only whenanswer_urlis unreachable, times out, or returns invalid VobizXML. It must itself return valid XML. With no fallback set, the call drops onanswer_urlfailure. hangup_urldefaults toanswer_urlwhen omitted at create time - your answer handler may receive hangup callbacks (Event=Hangup) unless you set a distincthangup_url.- An endpoint binds to exactly one application - swap it via update (
applicationfield, numericapp_id; unknown id returns400). - SIP registration uses the endpoint
username/passwordagainstregistrar.vobiz.ai(UDP/TCP/TLS, or SIP over WebSocket for custom WebRTC clients) - notsip.vobiz.ai, and not your Auth ID / Auth Token. SIP endpoints need no separate token or JWT. The hosted WebRTC Playground (rtc-demo.vobiz.ai) is the exception: it signs in with your Auth ID / Auth Token.
Recipes
Create app → attach number → route inbound
POST .../Application/withapp_name,answer_url,answer_method→ captureapp_id.POST .../numbers/%2B<E164>/applicationwith{ "application_id": "<app_id>" }.- Inbound calls to that number now fetch
answer_urlfor VobizXML. - Verify with
GET .../Application/{app_id}/and theapplicationobject in the attach response.
Create endpoint → attach app → ring a device from a call
POST .../Endpoint/withusername,password,alias,application: <app_id>→ captureendpoint_id; the device's URI issip:<username>@registrar.vobiz.ai.- Register a softphone/browser/desk phone with the username/password against
registrar.vobiz.ai. - In the inbound Application's VobizXML,
<Dial callerId="+1..."><User>sip:<username>@registrar.vobiz.ai</User></Dial>to ring the device (callerIdmust be a Vobiz number you own). - Confirm registration via
GET .../Endpoint/{endpoint_id}/→sip_registered: "true".
Rotate an endpoint password safely
POST .../Endpoint/{endpoint_id}/with newpassword(minimum 8 characters).- Push the new credential to every SIP client and force re-registration (old credential stops working).
When to search docs
- "How do I configure a Pipecat / LiveKit / Vapi / ElevenLabs handler?" →
integrations/* - "Browser calling with WebRTC" →
integrations/webrtc-application-setup,endpoint/endpoint-object - "Inbound call routing / DID binding" →
applications/attach-number - "VobizXML elements (Dial, Gather, etc.)" → voice XML reference docs