--- title: "stopcall" slug: "stopcall" updated: 2024-10-25T11:02:05Z published: 2024-10-25T11:02:05Z canonical: "docs.voiso.com/stopcall" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.voiso.com/llms.txt > Use this file to discover all available pages before exploring further. # stopcall Post/api/v1/{api_key}/click2call_hangup End the agent's call initiated by the click2call API. Agents are identified by their extensions in the agent parameter. Path parametersapi_keystringRequired The [Contact Center API key](https://developers.voiso.com/client/#/rest/getting-started/authentication/how-to-obtain-the-contact-center-key). Example{contact_center_api_key} Body parametersagentstring Required Responses204 All parameters are valid and the API call ends 400 Incorrect body parameters example1 Error1 No active calls ```json { "error": "No active calls" } ``` example2 Error2 Call rate limit exceeded ```json { "error": "Rate limit exceeded" } ``` example3 Error3 Invalid agent's extension ```json { "error": "Invalid agent's extension" } ``` Example{ "error": "No active calls" } 403 Invalid api_key example1 Error1 Invalid API key ```json { "error": "Invalid api_key" } ``` Example{ "error": "Invalid api_key" }