cURL
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" }
Removes a phone number from the user’s account.
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '
The phone number to delete.
"+14155551212"
Successful response
true
"Phone number deleted successfully"
"PhoneNumberDeletedSuccessfully"
Was this page helpful?