Upload a contact import file (user)
Uploads a CSV or Excel file and creates an import in the incomplete state.
The file is only stored at this step: no contacts are created yet. Next,
configure parsing via the settings endpoint, map columns via the mapping
endpoints, then confirm.
Accepts a USER token only. The created import (and every contact it will
create) is private to the authenticated user. Send the file as
multipart/form-data under the file key. Accepted types: CSV, XLS, XLSX.
Rate limited: at most one import may be created per minute per user. Only successful creates count, so a rejected request (422) never blocks a valid retry. Configuring an existing import is not limited.
Notification preferences may be set here or via the settings endpoint.
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>
Request body · required
Responses
550e8400-e29b-41d4-a716-446655440000incomplete pending processing completed completed_with_errors failedincompletecsv xls xlsx nullcsv42311"UTF-81mappingsarray<object>
name10subfieldsarray<object>
typemobile2026-01-15T09:30:00Z2026-01-15T09:31:00Z2026-01-15T09:31:45Zrecordsarray<object>
550e8400-e29b-41d4-a716-4466554400101errorsarray<object>
7emailmessagesarray<string>
row_dataobject
Authorization Token is missingThe given data was invalid.errorsobject
filterarray<string>
sortarray<string>
pagearray<string>
per_pagearray<string>
https://cockpit.voxbi.com/api/v1/contacts/imports
curl -X POST 'https://cockpit.voxbi.com/api/v1/contacts/imports' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/contacts/imports', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.post('https://cockpit.voxbi.com/api/v1/contacts/imports',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/contacts/imports', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"errors": { … }
"filter": [ … ],
"sort": [ … ],
"page": [ … ],
"per_page": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
60application/json