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 · multipart/form-data
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' \
-F 'file=@/path/to/file' \
-F 'notify_owner_by_email=false' \
-F 'webhook_url=string'
const body = new FormData();
body.append('file', fileInput.files[0]); // /path/to/file
body.append('notify_owner_by_email', 'false');
body.append('webhook_url', 'string');
const response = await fetch('https://cockpit.voxbi.com/api/v1/contacts/imports', {
method: 'POST',
headers: { Authorization: `Bearer ${YOUR_TOKEN}` },
body,
});
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}'},
data={
'notify_owner_by_email': 'false',
'webhook_url': 'string',
},
files={
'file': open('/path/to/file', 'rb'),
},
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$ch = curl_init('https://cockpit.voxbi.com/api/v1/contacts/imports');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_TOKEN']);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'file' => new CURLFile('/path/to/file'),
'notify_owner_by_email' => 'false',
'webhook_url' => 'string',
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);
{ … }
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"errors": { … }
"filter": [ … ],
"sort": [ … ],
"page": [ … ],
"per_page": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
60application/json