Phone Numbers
Update Phone Number
Phone Numbers
Update Phone Number
PATCH
/
phone_numbers
/
{phone_number}
curl --request PATCH \
--url https://api.voiceos.io/phone_numbers/{phone_number} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inbound_agent_id": "<string>",
"webhooks": [
{
"events": [
"phone_call:connection_requested"
],
"url": "<string>",
"method": "GET",
"headers": {},
"filter": "<string>"
}
]
}'
{
"uri": "<string>",
"inbound_agent_id": "<string>",
"phone_number": "<string>",
"account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"telephony": {
"provider": "twilio",
"phone_number_sid": "<string>",
"account_sid": "<string>",
"auth_token": "<string>"
},
"webhooks": [
{
"events": [
"phone_call:connection_requested"
],
"url": "<string>",
"method": "GET",
"headers": {},
"filter": "<string>"
}
],
"id": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The phone number including the country code.
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request PATCH \
--url https://api.voiceos.io/phone_numbers/{phone_number} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inbound_agent_id": "<string>",
"webhooks": [
{
"events": [
"phone_call:connection_requested"
],
"url": "<string>",
"method": "GET",
"headers": {},
"filter": "<string>"
}
]
}'
{
"uri": "<string>",
"inbound_agent_id": "<string>",
"phone_number": "<string>",
"account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"telephony": {
"provider": "twilio",
"phone_number_sid": "<string>",
"account_sid": "<string>",
"auth_token": "<string>"
},
"webhooks": [
{
"events": [
"phone_call:connection_requested"
],
"url": "<string>",
"method": "GET",
"headers": {},
"filter": "<string>"
}
],
"id": "<string>"
}