cURL
curl --request POST \ --url https://api.tryhamsa.com/v1/voice-agents/unassign \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "phoneNumber": "+9700000000" } '
{ "success": true, "message": "Success", "data": "Voice agents were successfully unassigned from the phone number." }
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '
Phone number to assign to voice agent, should start with + and the country code.
"+9700000000"
Successful response
true
"Success"
"Voice agents were successfully unassigned from the phone number."