Skip to main content
POST
/
v1
/
voice-agents
/
unassign
Unassign a phone number from Voice Agents.
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."
}

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 <api-key>'

Body

application/json
phoneNumber
string

Phone number to assign to voice agent, should start with + and the country code.

Example:

"+9700000000"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"Success"

data
string
Example:

"Voice agents were successfully unassigned from the phone number."

I