cURL
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": { "system": false, "sid": "sip_1d31b6c1-dcea-425a-a3e1-3a9227a95381", "name": "production" }, "created_at": "2025-05-03T10:43:50.472662Z", "updated_at": "2025-05-03T10:43:50.472702Z", "inbound_agent_id": "agent_340846df-6fc5-4550-8c8e-590761765548", "outbound_agent_id": "agent_340846df-6fc5-4550-8c8e-590761765548" } }
Update a phone’s name, inbound_agent_id, or outbound_agent_id.
Bearer auth header. Pass with value 'Bearer {api_key}'. Api key can be found in account Settings -> API Keys page
E.164 formatted phone number
Name for the phone
SID of agent for inbound calls
SID of agent for outbound calls
Phone updated
success
error
Show child attributes