Origination URI
Create Origination URI
Add a SIP destination URI to your Vobiz trunk for outbound routing - set priority and weight for load balancing and carrier failover across 130+ countries.
POST
Create an origination URI
sip:user@host:port or sip:host:port.
Authentication required:
X-Auth-ID- Your account Auth IDX-Auth-Token- Your account Auth TokenContent-Type: application/json
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Label for the destination, such as “Primary SBC” or “US East carrier”. Surfaces as description on the returned object. |
sip_uri | string | Yes | SIP URI destination, e.g. sip:provider@sip.example.com:5060 or sip:sbc.example.com. Returned on the object as uri. |
priority | integer | Yes | Routing priority (lower = higher priority). Use priority 1 for primary routes and 2+ for backup/failover routes. |
weight and transport are set after creation. New URIs default to weight: 10 and an inferred transport. To split traffic across same-priority URIs (load balancing) or change priority later, use Update Origination URI or the Console. The create endpoint accepts only name, sip_uri, and priority.Response
Returns the complete origination URI object, including the auto-generatedid UUID and timestamps.
Response - 201 Created
Field name change between request and response. You send
sip_uri and name; the response returns them as uri and description. The weight and transport fields appear on the response with their defaults even though you cannot set them at creation.Examples
cURL - Primary Origination URI
cURL Request
cURL - Failover URI with Lower Priority
cURL Request
cURL - Load Balancing Configuration
Create two URIs at the same priority, then set theirweight with Update Origination URI to split traffic (e.g. 70/30). Both come back with the default weight: 10 (an even split) until you adjust them.
Error Response (400 Bad Request): If SIP URI format is invalid:
Error Response - 400 Bad Request
Authorizations
Your Vobiz account Auth ID
Your Vobiz account Auth Token
Path Parameters
Your account Auth ID
Example:
"MA_XXXXXX"