Skip to content
Go to Micro

Imports

Get the status of an import job
prism.imports.get(strjob_id, ImportGetParams**kwargs) -> ImportGetResponse
GET/v2/prism/{teamId}/imports/{jobId}
ModelsExpand Collapse
class ImportGetResponse:

Status snapshot of an import job. Same shape used by the POST /import response and by GET /imports/{jobId}.

job_id: Optional[str]

Null for sync imports (results inlined). Set for async imports.

status: Literal["complete", "processing", "failed"]
One of the following:
"complete"
"processing"
"failed"
total: int

Total number of rows in the import.

created_at: Optional[datetime]
formatdate-time
error: Optional[Error]

Set when status=failed; describes the job-level failure (not per-row).

code: Optional[str]
message: Optional[str]
expires_at: Optional[datetime]
formatdate-time
failed: Optional[int]
processed: Optional[int]

Rows that have been attempted (succeeded + failed).

results: Optional[List[Result]]

Per-row outcomes. Always present for sync imports; populated for async imports once the job reaches complete.

id: Optional[str]
formatuuid
created: Optional[bool]
error: Optional[ResultError]
code: Optional[str]
message: Optional[str]
existing: Optional[bool]

True if the row matched an existing record via the dedupe key.

succeeded: Optional[int]
updated_at: Optional[datetime]
formatdate-time