Skip to main content
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 ID
  • X-Auth-Token - Your account Auth Token
  • Content-Type: application/json

Path parameters

Body parameters

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_id returns a 404. Confirm the number is purchased to your account and the app_id exists 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: true are auto-attached to that application, so an explicit attach is only needed to override the default or attach an existing number.