Stopcall
#

Stopcall
#

End the agent's call initiated by the click2call API. Agents are identified by their extensions in the agent parameter.

POST /api/v1/{api_key}/click2call_hangup

API Code Playground

Endpoint Arguments
Parameters
Required
Required
String
Template

Contact center API key

body
Required
Required
String


Responses

  • 204
  • 400
  • 403

All parameters are valid and the API call ends

There is no response body for this status code.
  • Request
  • Response
curl -X POST \
  --url 'https://www.example.com/api/v1/ZXTf40WQMcQQJHZKGMhHL8av1AvonVHy/click2call_hangup' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "agent": "agent0"
}'