Release Agent's Phone Number (Basic authentication)

This API is used to force-release an agent's phone number when an agent disconnects a call with the customer, however, the call does not get disconnected and the agent's phone number is still mapped with the customer.

👍

Note:

Make sure the admin setting 'API Authentication' is set to 'BASIC_AUTH', If you are using this API.

Header parameters

ParameterDescription
apiKey*Your CloudAgent account API Key
Content-Typeapplication/json

Body Params

{
"userName":"xxxxx",
"phoneName":"xxxxx"
}

Possible responses

success message"status": "success",
"FwpNumbers": ["xxxx"]
Invalid apiKey"status": "error"
"message": "userName or apiKey not valid"
Invalid userName"status": "error"
"message": "userName or apiKey not valid"
empty userName"status": "error"
"message: "userName cannot be empty"
empty apiKey"status": "error"
"message": "apiKey cannot be empty"
Language
URL
Click Try It! to start a request and see the response here!