List a user's twinnings (user)
List the twinnings that belong to the given user. Results are paginated.
The following Spatie QueryBuilder filters are supported (exact match):
filter[status], filter[phone_number], filter[delay],
filter[sync_source] and filter[type]. Sorting is allowed on the same
fields; prefix a field with - for descending order, for example
sort=-delay.
When a twinning has Fixed-Mobile Convergence (FMC) enabled together with a
backup phone number, the response also includes a derived read-only entry
for that backup number. The derived entry carries a generated id and is
not a separately stored record.
User bearer token. Default authentication for customer-facing endpoints.
Obtain a token by calling POST /login with your credentials, then send it
on every subsequent request as Authorization: Bearer <token>. The token
inherits the permissions and PBX scope of the authenticated user.
- HTTP Authorization Scheme
bearer- Bearer format
Bearer <token>
application/jsonResponses
dataarray<object>
550e8400-e29b-41d4-a716-446655440000550e8400-e29b-41d4-a716-446655440001enabled disabledenabled+121255501005manual provision legacy_importmanualmobile teamsmobilegsm_only voip_only voip_and_gsm_fallbackvoip_and_gsm_fallback+121255501012024-03-01T08:29:07Z2024-03-01T08:29:07Zlinksobject
http://localhost/api/v1/resources?page=1http://localhost/api/v1/resources?page=1metaobject
111linksarray<object>
http://localhost/api/v1/resources?page=1first1http://localhost/api/v1/resources1511Authorization Token is missingmessagearray<string>
https://cockpit.voxbi.com/api/v1/users/{user}/twinnings
curl -X GET 'https://cockpit.voxbi.com/api/v1/users/{user}/twinnings' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/users/{user}/twinnings', {
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/{user}/twinnings',
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/{user}/twinnings', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
"data": [ … ],
{ … }
"links": { … },
"meta": { … }
"links": [ … ],
{ … }
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"message": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057