Skip to content

Get a configuration import (pbx)

get /configuration-imports/{id}

The status of one import: queued, processing, ready, restored, failed or removed, with its times. ready means the version is stored as a configuration version of the PBX and waits for a person to review and restore it in Cockpit (version_id and links.version); nothing was applied to the PBX. restored adds restored_at, read from the restore history. When failed: the reasons in errors (readable text, never SQL); no version was made and the PBX was not changed. removed: the version was deleted before anyone restored it. The id of another PBX's import answers 404.

The status never mentions conflicts with other PBXs: a person sees them in Cockpit.

Needs the configuration-import scope. Rate limit: 30 requests per minute per PBX. Answers 503 while configuration versions are switched off.

HTTP: IntegrationApiKey

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
id path · string · uuid *
The id returned when the import was sent.
accept header · string
example: application/json

Responses

The import.
Response schema
id*string · uuid
Import identifier, to read the status. It is not the id of the version (see `version_id`).
example: 550e8400-e29b-41d4-a716-446655440000
status*string
`queued`: the checked file is stored and waits for a worker. `processing`: the version is being made (audio converted, file stored). `ready`: the version is stored among the PBX's configuration versions and waits for a person to review it in Cockpit (nothing is applied to the PBX). `restored`: a person restored the version in Cockpit (`restored_at`). `failed`: no version was made, the PBX was not changed (see `errors`). `removed`: the version was deleted before anyone restored it, by a person or by the retention (30 days).
enum: queued processing ready restored failed removed
example: ready
namestring | null
The name of the version (the file's `snapshot.name`), shown in the list of configuration versions (set once the version is stored).
example: Move from the old provider
created_atstring · date-time
When the file was accepted.
example: 2026-11-24T10:15:00+01:00
started_atstring | null · date-time
When the version started to be made (null while queued).
example: 2026-11-24T10:15:02+01:00
finished_atstring | null · date-time
When the version was stored or the import failed (null until then).
example: 2026-11-24T10:15:09+01:00
version_idstring | null · uuid
The configuration version this import added to the PBX (when `status` is `ready` or `restored`).
example: 550e8400-e29b-41d4-a716-446655440001
restored_atstring · date-time
When a person restored the version in Cockpit (only when `status` is `restored`).
example: 2026-11-25T09:30:00+01:00
errors*array<object>
Why the import failed (only when `status` is `failed`), in the shape of the validation errors. Readable text, never SQL. Empty otherwise.
codestring
example: row.pbx_id
messagestring
example: The PBX id must be "00000000-0000-4000-8000-000000000001".
modelstring | null
example: extension
model_labelstring | null
example: Extension
rowstring | null
columnstring | null
notesarray<object>
The notes the file's author left about what could not be brought over (single import only).
codestring
example: example.skipped
levelstring
enum: info warning
example: info
textstring
example: One unsupported feature was left out.
subjectstring | null
links*object
selfstring · uri
Where to read this import's status.
example: https://cockpit.voxbi.com/api/v1/configuration-imports/550e8400-e29b-41d4-a716-446655440000
versionstring · uri
The version's page in Cockpit, where a person reviews and restores it (when the version exists).
example: https://cockpit.voxbi.com/admin/configuration-versions/550e8400-e29b-41d4-a716-446655440001/show
Unauthenticated. The `Authorization: Bearer <token>` header was missing, malformed, or names a token that has been revoked or deleted.
Response schema
messagestring
Forbidden. The bearer token authenticated successfully but does not carry the scope this endpoint requires. Re-create the Integrations API key with the missing scope selected (Integrations > New integration > API key). On a write with a user bearer token, the user lacks the Cockpit permission the same change needs (the message names it).
Response schema
messagestring
No such import for this PBX (another PBX's id answers the same).
Response schema
messagestring
Too Many Requests. The rate limit for this action has been exceeded. Retry after the window indicated by the Retry-After header.
Response schema
messagestring
Service Unavailable. Configuration versions are switched off on this installation, so configuration import is not available. Nothing was read or stored.
Response schema
messagestring
get https://cockpit.voxbi.com/api/v1/configuration-imports/{id}
Base URL
Request sample
curl -X GET 'https://cockpit.voxbi.com/api/v1/configuration-imports/{id}' \
  -H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/configuration-imports/{id}', {
  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/configuration-imports/{id}',
    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/configuration-imports/{id}', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "ready",
"name": "Move from the old provider",
"created_at": "2026-11-24T10:15:00+01:00",
"started_at": "2026-11-24T10:15:02+01:00",
"finished_at": "2026-11-24T10:15:09+01:00",
"version_id": "550e8400-e29b-41d4-a716-446655440001",
"errors": [],
"notes": [ … ],
{ … }
"code": "example.skipped",
"level": "info",
"text": "One unsupported feature was left out.",
"subject": null
}
],
"links": { … }
"self": "https://cockpit.voxbi.com/api/v1/configuration-imports/550e8400-e29b-41d4-a716-446655440000",
"version": "https://cockpit.voxbi.com/admin/configuration-versions/550e8400-e29b-41d4-a716-446655440001/show"
}
}
{ … }
"message": "Unauthenticated."
}
Content-Type string
example: application/json
{ … }
"message": "Invalid ability provided."
}
Content-Type string
example: application/json
{ … }
"message": "Configuration import not found."
}
{ … }
"message": "Too Many Attempts."
}
Retry-After integer
Seconds to wait before retrying.
example: 60
Content-Type string
example: application/json
{ … }
"message": "Configuration import is not available on this system: configuration versions are switched off."
}