/v1/apps/{app_id}/end-users/import/{job_id}AuthImport job status and per-row error report. Never returns the uploaded file.
`status: succeeded` means the job RAN TO COMPLETION, not that every row landed — read `failed_count` and `errors` for that. `errors` is capped at the first 500 entries; the counts stay exact.
Path parameters
app_id*stringId of the app.
job_id*stringId of the job.
Response · 200
id*stringUnique identifier of the import job.
app_id*stringThe Auth app the import job belongs to.
status*object`succeeded` means the job ran to completion, not that every row landed — read `failed_count`.
total_rows*numberRows in the uploaded file.
processed_rows*numberRows processed so far.
created_count*numberRows that created a new user.
updated_count*numberRows that updated an existing user.
failed_count*numberRows that failed; see `errors`.
errors*arrayFirst 500 per-row failures. `failed_count` stays exact.
error_message*stringSet when the JOB itself aborted, as opposed to a row failing.
created_at*string · date-timeWhen the import job was created (ISO 8601).
started_at*string · date-timeWhen the job started running (ISO 8601), or `null` while queued.
finished_at*string · date-timeWhen the job finished (ISO 8601), or `null` while it runs.
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/end-users/import/{job_id}
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const importJob = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").endUsers.imports.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.admin.app(…).endUsers.imports.retrieve(jobId, options?): Auth.ImportJob
Response
{
"id": "string",
"app_id": "string",
"status": {},
"total_rows": 0,
"processed_rows": 0,
"created_count": 0,
"updated_count": 0,
"failed_count": 0,
"errors": [
{
"line": 0,
"error": "string"
}
],
"error_message": "string",
"created_at": "2026-01-01T00:00:00.000Z",
"started_at": "2026-01-01T00:00:00.000Z",
"finished_at": "2026-01-01T00:00:00.000Z"
}