Skip to content

telephony.phoneNumbers.update

Repoint or rename a number.

Changing inbound_workflow_id re-syncs the inbound webhook with the provider; the response includes a provider_sync block with the result.

To remove an existing inbound binding, send clear_inbound_workflow: true. Sending inbound_workflow_id: null alone is treated as “no change”.

Reference

PUT/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}

Auth
API key in X-API-Key
Content
application/json
Returns
200 · PhoneNumberResponse

Arguments

ArgumentInTypeRequiredDescription
config_idpathintegerrequired
phone_number_idpathintegerrequired
labelbodystringoptional
inbound_workflow_idbodyintegeroptional
clear_inbound_workflowbodybooleandefault false
callback_workflow_idbodyintegeroptional
clear_callback_workflowbodybooleandefault false
is_activebodybooleanoptional
country_codebodystringoptional
extra_metadatabodyobjectoptional
inbound_contact_list_idbodyintegeroptional
clear_inbound_contact_listbodybooleandefault false
inbound_require_known_callerbodybooleanoptional
inbound_max_calls_per_callerbodyintegeroptional
inbound_call_window_hoursbodyintegeroptional
inbound_allow_listbodystring[]optional

Example request

curl -X PUT "https://api.decibyl.ai/api/v1/organizations/telephony-configs/<config_id>/phone-numbers/<phone_number_id>" \
  -H "X-API-Key: dcb_your_key" \
  -H "Content-Type: application/json" \
  -d '{"label":"string","inbound_workflow_id":1,"clear_inbound_workflow":false,"callback_workflow_id":1,"clear_callback_workflow":false,"is_active":true,"country_code":"string","extra_metadata":{},"inbound_contact_list_id":1,"clear_inbound_contact_list":false,"inbound_require_known_caller":true,"inbound_max_calls_per_caller":1,"inbound_call_window_hours":1,"inbound_allow_list":["string"]}'

Response

{
  "id": 1,
  "telephony_configuration_id": 1,
  "address": "string",
  "address_normalized": "string",
  "address_type": "string",
  "country_code": "string",
  "label": "string",
  "inbound_workflow_id": 1,
  "inbound_workflow_name": "string",
  "callback_workflow_id": 1,
  "inbound_contact_list_id": 1,
  "inbound_require_known_caller": false,
  "inbound_max_calls_per_caller": 1,
  "inbound_call_window_hours": 24,
  "inbound_allow_list": [
    "string"
  ],
  "is_active": true,
  "is_default_caller_id": true,
  "extra_metadata": {},
  "created_at": "2026-09-14T09:30:00Z",
  "updated_at": "2026-09-14T09:30:00Z",
  "status": "active",
  "carrier_number_id": "string",
  "provisioned_at": "2026-09-14T09:30:00Z",
  "released_at": "2026-09-14T09:30:00Z",
  "provider_sync": {
    "ok": true,
    "message": "string"
  },
  "predeclaration_status": "string"
}

Errors

StatusWhen
404Not found
422Validation Error