Create voice application
create_applicationCreate a Vobiz voice application to define webhook URLs for inbound calls, then link its app_id to phone numbers or SIP endpoints.
Instructions
Create a Vobiz voice application: the set of webhook URLs Vobiz calls for inbound calls on the numbers and SIP endpoints linked to it. Only app_name and answer_url are required; hangup_url defaults to answer_url and every URL must be https on an approved host (VOBIZ_ALLOWED_URL_HOSTS). Returns the new app_id; link it afterwards with update_phone_number (application_id) or create_sip_endpoint (application_id). To change an existing application use update_application. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true. Every call creates another application, so after a timeout check list_applications before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true, set only after the user explicitly approved: creating this application. If your client supports MCP elicitation, the server asks the user to approve directly and this flag is not relied on; otherwise it is your attestation that the user approved. | |
| app_name | Yes | Application name, 1-120 characters: letters, digits, - and _ only (Vobiz rejects other characters). | |
| answer_url | Yes | URL Vobiz fetches for VobizXML when a call reaches a number or SIP endpoint linked to this application. Must be https on an approved host (VOBIZ_ALLOWED_URL_HOSTS) and answer within 10 seconds. | |
| hangup_url | No | URL Vobiz notifies when a call on this application ends (CallUUID, CallStatus, Duration, HangupCause). Omitted at creation, it defaults to answer_url. Must be https on an approved host. | |
| answer_method | No | HTTP method used to fetch answer_url: GET or POST (Vobiz default POST). | |
| hangup_method | No | HTTP method for hangup_url: GET or POST (Vobiz default POST). | |
| fallback_method | No | HTTP method for fallback_answer_url: GET or POST (Vobiz default POST). | |
| default_number_app | No | true makes this the application for newly bought numbers that have none (Vobiz default false). Existing numbers are not re-routed. | |
| fallback_answer_url | No | Fetched only when answer_url is unreachable, times out or returns invalid VobizXML; must itself return VobizXML. Without one the call drops on answer_url failure. Must be https on an approved host. | |
| default_endpoint_app | No | true makes this the application for newly created SIP endpoints that have none (Vobiz default false). Existing endpoints are not re-routed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True on success. On a failure the result is isError with ok: false plus `error` (kind), `message`, `retryable` and sometimes `http_status`. | |
| app_id | No | ID of the new application; use it as app_id or application_id elsewhere. Null if Vobiz did not return one. | |
| created | No | True when the record was created by this call. | |
| http_status | No | HTTP status Vobiz answered with. | |
| backend_message | No | Status message from Vobiz (e.g. 'created' or 'changed'), when it sent one. |