DELETE
/
phone_numbers
/
{phone_number}
curl --request DELETE \
  --url https://api.voiceos.io/phone_numbers/{phone_number} \
  --header 'Authorization: Bearer <token>'
{
  "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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

phone_number
string
required

The phone number including the country code.

Query Parameters

release_phone_number
boolean
default:false

Response

200
application/json
Successful Response

The response is of type object.