Get an user WebRTC configuration by Email
Returns the user webrtc identified by the path parameter. Multi-tenant scoping is enforced: the caller can only fetch resources within their own PBX.
API Key:
ApiKeyAuth
- Parameter name
Authorization- Located in
header
email
path · string
*
accept
header · string
example:
application/jsonResponses
Response schema
hostnamestring
example:
pbx.mixvoip.comportinteger
example:
8089usernamestring
example:
mixvoip_webrtc_1337passwordstring
example:
9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08caller_identitiesarray<object>
idinteger
example:
1root_phone_nuber_idinteger
example:
1external_caller_extensionstring
example:
1337external_caller_numberstring
example:
2033331337allow_anonymous_callsboolean
example:
1allow_call_forwardingboolean
example:
1allow_change_twinning_destboolean
example:
1allow_dndboolean
example:
1allow_status_changerboolean
example:
1call_information_visibilitystring
enum:
own_calls own_group_only noneexample:
own_callscall_pickpup_restrictionsstring
enum:
yes own_groups_only noexample:
yesvoicemailboolean
example:
1voicemail_destinationstring
enum:
email_only email_and_phoneexample:
email_onlyvoicemail_pinstring
example:
1234voicemail_typestring
enum:
enabled external internalexample:
enabledAuthorization Token Missing. This error is returned when the authorization token is missing.
Response schema
errorstring
Error message
example:
Authorization Token is missingData Not Found. This error is returned when the requested data is not found.
Response schema
messagearray<string>
[]string
Server error. An unexpected condition was encountered on the server and the
request could not be completed. The body is a generic JSON envelope with a
`message` field. The response is logged on the server side; quote the
request URL + timestamp when reporting an issue.
Response schema
messagestring
exceptionstring
Only present in non-production environments.
filestring
Only present in non-production environments.
lineinteger
Only present in non-production environments.
get
https://cockpit.voxbi.com/api/v1/users/{email}/webrtc
Base URL
Request sample
curl -X GET 'https://cockpit.voxbi.com/api/v1/users/{email}/webrtc' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/users/{email}/webrtc', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://cockpit.voxbi.com/api/v1/users/{email}/webrtc',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/users/{email}/webrtc', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
"hostname": "pbx.mixvoip.com",
"port": 8089,
"username": "mixvoip_webrtc_1337",
"password": "$2y$10$ePs3A38yC.ewAqS0CVLghuLvimTIm5Pf0HUw5155wM9wd16XVqpeS",
"caller_identities": [ … ],
{ … }
"id": 1,
"root_phone_nuber_id": 1,
"external_caller_extension": "1337",
"external_caller_number": "2033331337"
}
],
"allow_anonymous_calls": true,
"allow_call_forwarding": true,
"allow_change_twinning_dest": true,
"allow_dnd": true,
"allow_status_changer": true,
"call_information_visibility": "own_calls",
"call_pickpup_restrictions": "yes",
"voicemail": true,
"voicemail_destination": "email_only",
"voicemail_pin": "1234",
"voicemail_type": "enabled"
}
Host
string
example:
cockpit.voxbi.com
Date
string
example:
Mon, 16 Oct 2023 14:08:48 GMT
Connection
string
example:
close
Cache-Control
string
example:
no-cache, private
Content-Type
string
example:
application/json
X-RateLimit-Limit
integer
example:
60
X-RateLimit-Remaining
integer
example:
59
Vary
string
example:
Origin{ … }
"error": "Authorization Token is missing"
}
Cache-Control
string
example:
private, must-revalidate
Connection
string
example:
keep-alive
Content-Type
string
example:
application/json
Vary
string
example:
Origin
X-RateLimit-Limit
integer
Max requests allowed in the current rate-limit window.
example:
60
X-RateLimit-Remaining
integer
Requests remaining in the current rate-limit window.
example:
57{ … }
"message": [ … ]
"Data not found"
]
}
Cache-Control
string
example:
private, must-revalidate
Connection
string
example:
keep-alive
Content-Type
string
example:
application/json
Vary
string
example:
Origin
X-RateLimit-Limit
integer
Max requests allowed in the current rate-limit window.
example:
60
X-RateLimit-Remaining
integer
Requests remaining in the current rate-limit window.
example:
57{ … }
"message": "Server Error"
}