Skip to main content
PUT
/
phones
/
{phone}
Update a phone
curl --request PUT \
  --url https://api.voice-mate.com/v1/phones/{phone} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "inbound_agent_id": "<string>",
  "outbound_agent_id": "<string>"
}'
{
  "status": "success",
  "phone": {
    "sid": "phone_b30fbf02-83be-4214-9724-f889085ecffb",
    "name": "main_office_phone",
    "number": "+15893858485",
    "sip_trunk": {
      "sid": "sip_1d31b6c1-dcea-425a-a3e1-3a9227a95381",
      "name": "production",
      "system": false
    },
    "inbound_agent_id": "agent_340846df-6fc5-4550-8c8e-590761765548",
    "outbound_agent_id": "agent_340846df-6fc5-4550-8c8e-590761765548",
    "created_at": "2025-05-03T10:43:50.472662Z",
    "updated_at": "2025-05-03T10:43:50.472702Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer auth header. Pass with value 'Bearer {api_key}'. Api key can be found in account Settings -> API Keys page

Path Parameters

phone
string
required

E.164 formatted phone number

Body

application/json
name
string

Name for the phone

inbound_agent_id
string | null

SID of agent for inbound calls

outbound_agent_id
string | null

SID of agent for outbound calls

Response

Phone updated

status
enum<string>
required
Available options:
success,
error
phone
object
required