Applications
Attach Number to Application
Link a Vobiz phone number to a voice Application so incoming calls and messages on that number are routed to the Application’s configured webhooks.
POST
Attach Number to Application
Link a phone number from your account inventory to a voice application. After attaching, all incoming calls to that number are routed through the application’s
answer_url and hangup_url webhooks.
This operation lives under the numbers path (lowercase), not under
Application: POST /api/v1/Account/{auth_id}/numbers/{number}/application.Authentication required:
X-Auth-ID- Your account Auth IDX-Auth-Token- Your account Auth TokenContent-Type: application/json
string
required
Your Vobiz account ID, for example
MA_XXXXXXXX.Path parameters
string
required
Your Vobiz account ID. Use the same value in
X-Auth-ID.string
required
The E.164-formatted phone number, URL-encoded (
+ → %2B). Example: %2B1234567890.Body parameters
string
required
The
app_id of the application to attach to this number.Example request
cURL
Response
Success Response (200 OK)
Edge cases
- Re-attaching an already-linked number overwrites the previous binding and re-points routing to the new
application_id. You do not need to detach first. - Number not in your account or unknown
application_idreturns a404. Confirm the number is purchased to your account and theapp_idexists with list applications. - URL-encode the number. A raw
+in the path will not match; use%2B(for example%2B14155551234). - New numbers created while an application has
default_number_app: trueare auto-attached to that application, so an explicit attach is only needed to override the default or attach an existing number.