Auth API reference

Auth API · End-Users

get/v1/apps/{app_id}/end-users/import/{job_id}Auth

Import 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*string

Id of the app.

job_id*string

Id of the job.

Response · 200

id*string

Unique identifier of the import job.

app_id*string

The 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*number

Rows in the uploaded file.

processed_rows*number

Rows processed so far.

created_count*number

Rows that created a new user.

updated_count*number

Rows that updated an existing user.

failed_count*number

Rows that failed; see `errors`.

errors*array

First 500 per-row failures. `failed_count` stays exact.

error_message*string

Set when the JOB itself aborted, as opposed to a row failing.

created_at*string · date-time

When the import job was created (ISO 8601).

started_at*string · date-time

When the job started running (ISO 8601), or `null` while queued.

finished_at*string · date-time

When 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_TOKEN

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"
}