GET/ import/ status/
Check import status
You can return the list of all imports. By adding "?import_id=<import_id>" param, you can check a specific import status.
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/import/status/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/import/status/",
{
method: "GET",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
},
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/import/status/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.get(
"https://<your_app_subdomain>.user.com/api/public/import/status/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
{"success": true,"data": {"id": "a256aca3-b279-4ea4-a5d4-f9e1de87ca25","status": "finished","total_count": 2,"succeeded": 2,"failed": 0,"started_at": "2026-11-17T15:00:47.231734Z","finished_at": "2026-11-17T15:00:48.182095Z","author": 1,"rows_with_errors": []}}| Name | Description |
|---|---|
| id | A unique identifier for your import automatically generated by the User app |
| total_count | A number of all users provided in a CSV file |
| succeeded | A number of successfully imported users |
| failed | A number of users that haven't been imported due to some error |
| started_at | A DateTime when your import has started |
| finished_at | A DateTime when you import has finished (do not mistake with a DateTime when your users should be created) |
| rows_with_errors | A list of a maximum first 50 rows that resulted in some error during the import |
Response fields
Fields returned in the 200 OK response body.
- success
truewhen the request succeeded.- data
- A valid json object with additional data.
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.
Response example
{"success": true,"data": {"id": "ccfa2628-b054-4ac4-8d03-097914b663c8","status": "finished","total_count": 3,"succeeded": 3,"failed": 0,"started_at": "2025-06-18T13:11:14.645498Z","finished_at": "2025-06-18T13:11:15.178206Z","author": 1,"rows_with_errors": []}}