List the Odoo-activated users (pbx)
Returns the roster the Voxbi Installer module provisions into Odoo: every user of the
authenticated PBX who is activated for Odoo (an operator switch on the user's own edit
page or the integration's "Activate Odoo for users" screen), still enabled, and still
holding an extension.
Each row's email is the EFFECTIVE address: the operator's override when one was set,
otherwise the user's own Cockpit email. The real address is always available as
cockpit_email, kept for support and debugging even when an override is in effect.
The PBX is resolved from the authenticated API key, exactly like the other four
odoo-installer endpoints, so no PBX id is ever part of the request.
Returns an empty array, not an error, when the PBX has no Odoo integration or its
integration is not both active and connected (job_status = success).
Requires an API key carrying the odoo-installer ability.
API key created on the Cockpit Integrations page (an "API key" integration).
It is a bearer token owned by the customer's PBX and limited to the scopes
selected when the key was created (e.g. phone-numbers, push-configuration).
Send it in the Authorization header:
Authorization: Bearer <api_key>
Manage keys (create / reveal / revoke) from Integrations → New integration → API key.
- HTTP Authorization Scheme
bearer
application/jsonResponses
enabled disabledvoip_configurationsobject
Authorization Token is missinghttps://cockpit.voxbi.com/api/v1/odoo-installer/users
curl -X GET 'https://cockpit.voxbi.com/api/v1/odoo-installer/users' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/odoo-installer/users', {
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/odoo-installer/users',
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/odoo-installer/users', false, $context);
$data = json_decode($response, true);
print_r($data);
[ … ]
{ … },
"voip_configurations": { … }
{ … },
"voip_configurations": { … }
{ … }
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
{ … }
{ … }
12