Skip to content

List configuration imports (pbx)

get /configuration-imports

The imports sent with this PBX's API keys, newest first, paginated (default 25, at most 100 per page). Notes are left out of the list: read one import for them. Imports (and the unrestored versions they made) are kept for 30 days.

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
page query · integer
Page number to fetch. Defaults to `1`.
per_page query · integer
Imports per page, 1 to 100 (default 25).
accept header · string
example: application/json

Responses

One page of imports.
Response schema
dataarray<object>
Each item — A PBX configuration file sent with the PBX's API key, on its way to becoming a configuration version. The import only ADDS a configuration version to the PBX; it never applies it. A person reviews the version in Cockpit and restores it there. `notes` appears only on a single import, never in the list; `version_id`, `restored_at` and `links.version` appear when they apply.
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
linksobject
firststring
The first page of the resource
example: http://localhost/api/v1/resources?page=1
laststring
The last page of the resource
example: http://localhost/api/v1/resources?page=1
prevnull | string
The previous page of the resource
nextnull | string
The next page of the resource
metaobject
current_pageinteger
The current page of the resource
≥ 1
example: 1
fromnull | integer
The first item of the resource
≥ 1
example: 1
last_pageinteger
The last page of the resource
≥ 1
example: 1
linksarray<object>
urlstring | null
The url of the resource (null for the boundary prev/next links)
example: http://localhost/api/v1/resources?page=1
labelstring
The label of the resource
example: first
activeboolean
The status of the resource
example: 1
pathstring
The path of the resource
example: http://localhost/api/v1/resources
per_pageinteger
The number of items per page of the resource
≥ 1
example: 15
tonull | integer
The last item of the resource
≥ 1
example: 1
totalinteger
The total number of items of the resource
≥ 0
example: 1
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
Unprocessable Parameters. This error is returned when a parameter is not valid.
Response schema
messagestring
example: The given data was invalid.
errorsobject
filterarray<string>
[]string
sortarray<string>
[]string
pagearray<string>
[]string
per_pagearray<string>
[]string
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
Base URL
Request sample
curl -X GET 'https://cockpit.voxbi.com/api/v1/configuration-imports' \
  -H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/configuration-imports', {
  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',
    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', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
"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": [],
"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"
}
}
],
"links": { … },
"first": "https://cockpit.voxbi.com/api/v1/configuration-imports?page=1",
"last": "https://cockpit.voxbi.com/api/v1/configuration-imports?page=1",
"prev": null,
"next": null
},
"meta": { … }
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://cockpit.voxbi.com/api/v1/configuration-imports",
"per_page": 25,
"to": 1,
"total": 1
}
}
{ … }
"message": "Unauthenticated."
}
Content-Type string
example: application/json
{ … }
"message": "Invalid ability provided."
}
Content-Type string
example: application/json
{ … }
"errors": { … }
"filter": [ … ],
"The filter field must be an array."
],
"sort": [ … ],
"The sort field must be a string."
],
"page": [ … ],
"The page field must be an integer."
],
"per_page": [ … ]
"The per page field must be an integer."
]
}
}
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": "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."
}