Imports — bulk import jobs with per-item status and error reports.
Every path is on https://app.concord.app.
- POST
/api/v1/importsImport documents (ask first) - GET
/api/v1/imports/{id}Get an import - GET
/api/v1/imports/{id}/errorsGet import error report
POST/api/v1/imports
Import documents (ask first)
Declare 1 to 500 files of an import — the same import the app runs: each document may be up to 2 GB, a .zip is unpacked on the server, and one import may hold up to 90,000 documents / 128 GB. Each accepted file comes back with its upload (id, piece token, piece_size, piece_count); declined files come back with the reason. Then PUT each piece to PUT /api/upload-pieces/{id}/{piece}, call POST /v1/uploads/complete, and follow GET /v1/imports/{id}. A bigger import is several calls: the first sends import_id: null, each later one the id the first answered, and the LAST one final: true (an import whose final call never comes expires after 7 days). Folder, workspace, conversion, save_as, dedupe and respect_folders are set by the first call.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries. |
Request body
| Name | Type | Description |
|---|---|---|
filesrequired | array of object | 1 to 500 files per call. A bigger import is several calls: the first sends import_id: null, each later one the id the first answered, and the LAST one final: true. A .zip is unpacked on the server; each document inside it may be up to 2 GB. |
import_id | string, or null | null on the first call; the import's id on every later call. |
finalrequired | boolean | true on the call that declares the import's last files. An import whose final call never comes expires, like a cancelled one, after 7 days. |
folder_id | string, or null | Folder public ID or UUID to import the documents into (first call only). |
workspace_id | string (uuid), or null | Workspace UUID to import into; the organization's default when omitted. |
conversion | one of "editable", "original", or null | editable: Word files become editable documents; original: every file is kept as it is. The server default when omitted. |
save_as | one of "template", "draft", "review", "signing", "signed", or null | What the documents are saved as: a stage, or template. draft when omitted. |
dedupe | one of "skip", "warn", "off", or null | Duplicate detection: skip drops a file already in the organization, warn imports it and flags it, off imports every file. The server default when omitted. |
respect_folders | boolean or null | Recreate the folder tree of a folder or a zip import. Defaults to true for those, false for loose files. |
Responses
| Status | Description |
|---|---|
200 | The import, with each file's upload or the reason it was declined |
400 | Invalid request — see error.code for the specific failure mode |
401 | Missing or invalid Bearer token |
403 | Authenticated but not permitted to perform this action |
404 | Resource not found |
429 | Rate limit exceeded — see Retry-After and RateLimit-* headers |
GET/api/v1/imports/{id}
Get an import
The import's status (uploading, processing, completed, failed, cancelled) and one item per file with its document_id once the document exists.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string |
Responses
| Status | Description |
|---|---|
200 | Import batch status |
400 | Invalid request — see error.code for the specific failure mode |
401 | Missing or invalid Bearer token |
403 | Authenticated but not permitted to perform this action |
404 | Resource not found |
429 | Rate limit exceeded — see Retry-After and RateLimit-* headers |
GET/api/v1/imports/{id}/errors
Get import error report
List the failed files of a bulk import batch with error messages and suggested fixes. Suitable for CSV export and fix-and-retry loops.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string |
Responses
| Status | Description |
|---|---|
200 | Per-file error report |
400 | Invalid request — see error.code for the specific failure mode |
401 | Missing or invalid Bearer token |
403 | Authenticated but not permitted to perform this action |
404 | Resource not found |
429 | Rate limit exceeded — see Retry-After and RateLimit-* headers |