Skip to main content

Delete a messaging hosted number

DELETE 
/messaging_hosted_numbers/:id

Delete a messaging hosted number

Request

Path Parameters

    id stringrequired

    Identifies the type of resource.

Responses

200: Successful response with details about a messaging hosted number.

default: Unexpected error

Request samples


curl -L -X DELETE 'https://api.telnyx.com/v2/messaging_hosted_numbers/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"record_type": "messaging_hosted_number",
"id": "bf6307bd-884d-4c1f-b6ea-c62b8c495d3c",
"phone_number": "+18665550001",
"status": "successful"
}
]
}