Hangup calls
Hangup calls for a user
Authenticate using a User account (Pbx.instance_name_User.id (example: pbx20dev_7e6ba1ad-4c3c-43a6-a4b7-8c50e13e730d) is the username and password is sha256 of user.password or user.webrtc_password)
- HTTP Authorization Scheme
basic
Authenticate using a User account (Pbx.instance_name_User.id (example: pbx20dev_7e6ba1ad-4c3c-43a6-a4b7-8c50e13e730d) is the username and password is sha256 of user.password or user.webrtc_password)
Alternative for HTTP Basic Auth password for clients who don't support Headers'
- Parameter name
password- Located in
query
Authenticate using a User account (Pbx.instance_name_User.id (example: pbx20dev_7e6ba1ad-4c3c-43a6-a4b7-8c50e13e730d) is the username and password is sha256 of user.password or user.webrtc_password)
Alternative for HTTP Basic Auth username for clients who don't support Headers'
- Parameter name
username- Located in
query
Request body · required
channels*array<string>
Responses
1https://{username}.voxbi.cloud/api/{version}/calls/hangup
https://{username}.voxbi.cloud/api/{version}
curl -X POST 'https://{username}.voxbi.cloud/api/{version}/calls/hangup' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://{username}.voxbi.cloud/api/{version}/calls/hangup', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.post('https://{username}.voxbi.cloud/api/{version}/calls/hangup',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
],
]);
$response = file_get_contents('https://{username}.voxbi.cloud/api/{version}/calls/hangup', false, $context);
$data = json_decode($response, true);
print_r($data);