Create SIP endpoint
create_sip_endpointCreate a Vobiz SIP endpoint so a softphone, desk phone, or WebRTC client can register with a username, password, and call-handling application. Returns its endpoint ID and SIP URI.
Instructions
Create a Vobiz SIP endpoint so a soft-phone, desk phone or WebRTC client can register at registrar.vobiz.ai with its own username and password. Attach an application to handle its calls (otherwise the account's default endpoint application applies, if set). The username cannot be changed later; use update_sip_endpoint for everything else. Returns the endpoint_id and the SIP URI to configure on the device. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true. The password is write-only and never returned; every call creates another endpoint, so a retry after a timeout should first check list_sip_endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | Friendly name shown for the endpoint, 1-100 characters, e.g. Front desk phone. | |
| confirm | Yes | Must be true, set only after the user explicitly approved: creating this SIP endpoint. | |
| password | Yes | SECRET: the endpoint's SIP password (8+ characters; 12+ with mixed case, digits and symbols recommended). It is sent to Vobiz once and never shown again. | |
| username | Yes | SIP username, 3-64 letters, digits or _, unique on the account and permanent. Letters and digits are safest. | |
| application_id | No | Application (app_id from list_applications) that handles calls to and from this endpoint; sent to Vobiz as `application`. An unknown id is rejected. |
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`. | |
| note | No | How to register the device and that the password is never shown again. | |
| created | No | True when the record was created by this call. | |
| sip_uri | No | SIP URI the device registers as: sip:username@registrar.vobiz.ai. | |
| endpoint | No | The endpoint as Vobiz returned it (username, alias, endpoint_id). | |
| registrar | No | Registrar host to configure on the device. | |
| endpoint_id | No | ID of the new endpoint, or null if Vobiz did not return one. | |
| http_status | No | HTTP status Vobiz answered with. |