Skip to main content
DELETE
/
v1
/
voice-agents
/
phone-number
Delete a Phone Number
curl --request DELETE \
  --url https://api.tryhamsa.com/v1/voice-agents/phone-number \
  --header 'Authorization: <api-key>'
{
  "success": true,
  "message": "Phone number deleted successfully",
  "messageKey": "PhoneNumberDeletedSuccessfully"
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Query Parameters

phoneNumber
string
required

The phone number to delete.

Example:

"+14155551212"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"Phone number deleted successfully"

messageKey
string
Example:

"PhoneNumberDeletedSuccessfully"