Imports
Model
Imports Model
The imports model represents a bulk import operation on a specific resource, detailing various phases and statuses.
object "import"
The description of the model.
id string
Unique identifier for the import.
organization_id string
Unique identifier for the organization that owns this import.
resource string
Type of resource being imported.
upload_mode sync|async
Mode of file upload.
action merge|overwrite|delete
Action to be performed on the resources in the import.
status requested|queued|processing|completed|failed|timed_out|expired
Current status of the import.
duplicate_handling ignore_all|use_first
Defaults to ignore_all. If set to use_first in the API when creating the import, the first instance of a duplicate record will be processed whereas the rest will be ignored
reason string
Reason for the final status, if applicable.
has_upload_file boolean
Indicates if an original upload file was saved.
has_errors_file boolean
Indicates if an error file was generated.
name string
Optional human-readable name for the import.
created_by string
ID of the user or API key that created the import.
column_mapping object
Optional mapping of CSV/XLSX column headers to resource field names. Keys are the resource field names and values are the corresponding column headers in the uploaded file.
phases object[]
Details of each phase in the import process. There are 7 phases in total:
- prevalidation - Validates uploaded data against the schema (Zod). Runs in
syncorasyncmode depending onupload_mode. - preparsing - Removes duplicate records from the validated data. Runs in
syncorasyncmode depending onupload_mode. - transforming - Injects IDs and removes ambiguities such as resources that cannot be uniquely identified. Always runs in
asyncmode. - parsing - Parses and deduplicates the transformed batch data. Always runs in
asyncmode. - validation - Validates IDs and removes invalid references. Always runs in
asyncmode. - processing - Performs the primary upsert or delete operations. Always runs in
asyncmode. - cleanup - Handles overwriting operations when applicable. Always runs in
asyncmode.
Show Details
stats object
Statistics related to the import processing results.
Show Details
created_at integer
Time in epoch seconds when this import was created.
updated_at integer
Time in epoch seconds when this import was last updated.
updated_by string
ID of the user who last updated the import.
checksum string
Checksum of the import.
_upload_url string|null
URL for uploading a file/payload via a signed URL.
_upload_csv_url string|null
URL to download the original payload as a CSV file.
_upload_json_url string|null
URL to download the original payload as a JSON file.
_errors_csv_url string|null
URL to download errors as a CSV file.
_errors_json_url string|null
URL to download errors as a JSON file.