Skip to content
concord.app
Book a demo
esc
concord.app
Book a demo

API reference

Import. 19 operations.

The Import operations of the concord.app REST API, each with its parameters, body fields and responses.

Import — bulk import jobs with per-item status and error reports.

Every path is on https://app.concord.app.

GET/api/v1/import/batches/{batchId}

Full import-batch detail with stage and queue position

The FULL status of a bulk-import batch: stage and stage unit, every derived count (processed, failed, skipped, ignored, duplicate, cancelled, unverified, awaiting-scan), archive-entry accounting and truncation guards, byte progress, queue position, outcome, per-reason failure counts and the review handoff URL. A pure read — batch completion is owned by the import-batch-reconcile cron. For just the status word and the three headline file counts, importBatch.status is the smaller read.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

DELETE/api/v1/import/batches/{batchId}

Discard a never-started import

Removes an import that never started (a pending_confirmation batch whose confirm step never ran): deletes the batch row and purges the bytes it had staged. Nothing was imported, so nothing survives — the batch disappears from the imports list. Discarding an already-discarded batch is safe and reports discarded: false; discarding an import that has started is a 409 pointing at cancel.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/cancel

Cancel a running import

Stops an in-flight bulk import: cancels its pending jobs, asks the running one to stop at its next flush boundary, closes every remaining entry, and terminates the batch as cancelled. Documents the import already created are NOT deleted — the response reports how many there are, and they can be reversed with importBatch.undo. Cancelling an already-cancelled import is safe and reports the same outcome; cancelling a completed or failed import is a 409.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/finalize

Finalize a held import

Releases a held import into the library: creates its planned folders and files every placed document that was not left out where the review put it. Unanswered checks keep concord.app's placement and open changes are accepted. Send the review's expectedRevision (importBatch.get → reviewRevision); a stale one is a 409 stale_revision. While failed files are being read again (importBatch.review → rerunInFlight) it is a 409 rerun_in_flight: finalize once they are done. Answers 202: reviewState is finalized when done, or finalizing above 100 documents while a background job finishes (follow importBatch.get). Only the person who started the import can finalize it; Undo import (importBatch.unfinalize) takes it back for 72 hours. On an Organize with AI plan it applies the plan over documents already in the library (moves, new folders, replaced marks, tags, company links) as one undoable batch; documents moved since the plan was made stay where they are, and a 409 needs_answer means who can open some of them changed and a person must answer the plan's new question first.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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

NameTypeDescription
expectedRevision
required
integer

Responses

StatusDescription
202OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/import/batches/{batchId}/items

List an import batch's files and their outcomes

One keyset page of per-entry import items, newest-finished-first by default, filterable by outcome and failure reason. Carries each item's named failure reason and its scan-verification state. For an import held for review it also filters by tab (all, to_check, left_out), planned folder, question, stage, end-date window, counterparty, company group (companyKey) and renewals (all signed contracts renewing in the next 12 months, unsure: those whose renewal date is not sure, no_owner: those with no one to remind), and each row says where it will go, why it is left out, which open question holds it, the company it goes under, its type, and for a renewing signed contract its renewal date, notice date, whether the date is sure, the contract's own words for it and who the reminder goes to. For an Organize with AI plan (documents already in the library, nothing moved until Finalize) the tab moving lists the documents the plan moves, All leaves out the documents the reader can't move (To check lists them), and each row also says where the document is now (workspace and folder path), whether the plan moves it, the existing tags it plans to add and the newer copy that replaces it.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
outcome query one of "succeeded", "failed", "skipped", "ignored", "duplicate", "cancelled" and 2 more
statuses query array of one of "pending", "admitted", "stored", "verified", "created", "processing" and 6 more
reason_codes query array of string
since_seq query integer
starting_after query string Opaque cursor anchor from a previous page's next_page_url — returns the page starting after this item. Pair with limit. (cursor is the internal pagination dialect and is rejected on the public surface.)
order query one of "newest", "oldest"
limit query integer
tab query one of "all", "to_check", "left_out", "moving"
planned_folder_key query string
check_id query string
stage query string
ends_within_days query integer
counterparty query string
company_key query string
renewals query one of "all", "unsure", "no_owner"
replaced query "planned"
tag_id query string
item_ids query array of string
name query string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

PUT/api/v1/import/batches/{batchId}/items/representation

Set the representation preference for many import items

Sets whether MANY imported documents should each be presented as their original or as an editable conversion — the batch table's bulk Set-conversion verb, capped at 200 items per call — and APPLIES each choice (founder ruling D-21 = A): a row whose document exists flips the document's import mode through the document-page engine; a row without one stores the pin the batch create arm applies when the document is born. mode: null clears the pin on every named row and returns it to the batch-level default cascade. Count-only: an entry with nothing to represent (failed, skipped, ignored, duplicate or cancelled), an id the caller cannot see, or a document that refuses the flip never counts, so affected below itemIds.length is the refusal spoken as one number. An unknown or cross-tenant batch is a 404, never a 403.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)

Request body

NameTypeDescription
item_ids
required
array of string (uuid)
mode
required
one of "original", "editable", or null

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/items/retry

Retry an import's failed items

Re-runs only the entries whose failure the taxonomy declares retryable, increments their attempt count and reopens the batch. Naming a non-retryable reason or a non-retryable item is a 400; a cancelled or undone import can never be retried. When the organization has no processing capacity for the selection the call is a retryable 503 and NOTHING is changed — the batch keeps its terminal state and every per-item failure reason.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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

NameTypeDescription
item_ids array of string
reason_codes array of string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

PUT/api/v1/import/batches/{batchId}/items/{itemId}/representation

Set an import item's representation preference

Sets whether ONE imported document should be presented as its original or as an editable conversion — and APPLIES the choice (founder ruling D-21 = A): a row whose document exists flips the document's import mode through the document-page engine (refused with a typed error carrying data.errorCode when the document is signed, has a signature in flight, is a broken import, needs a re-conversion, or is a format ruled original-only); a row without one stores the pin the batch create arm applies when the document is born. mode: null clears the pin and returns the row to the batch-level default cascade. An entry with nothing to represent (failed, skipped, ignored, duplicate or cancelled) is a 409; an unknown or cross-tenant batch or item is a 404, never a 403.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
itemId
required
path string (uuid)

Request body

NameTypeDescription
mode
required
one of "original", "editable", or null

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/items/{itemId}/tracked-changes

Answer a left-out file's tracked changes

For a Word file chosen in the import window and left out because its tracked changes could not be kept as suggestions, records the answer — accept (Accept all changes) or reject (Reject all changes) — and imports the same upload again. Only the person who started the import (or an admin) may answer. A file that was not left out for its tracked changes is a 400; a batch no import window started, a file that came in a zip or a folder, or a file still being taken out of the library, is a 409.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
itemId
required
path string
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

NameTypeDescription
resolution
required
one of "accept", "reject"

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/placement

Place the files of a waiting import

For an upload started with placement: "awaiting", names where each file goes — workspace, folder (null for the workspace root), saving-as stage and Original/Editable — and imports them. Only the person who uploaded the files may place them. A dimension left out falls back to the upload's own choice, except where the upload's analysis could not tell: then the call is a 409 with refusal: "choice_required", the uploadId and the dimensions to choose. Placing an upload twice is a 409.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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

NameTypeDescription
items
required
array of object

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/import/batches/{batchId}/progress-stream

Stream bulk-import progress

Server-sent event-iterator stream of bulk-import progress for a batch. Yields the current status, then live updates until the batch completes/fails or the client disconnects.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/retry-prepare

Try preparing a held import again

A held import whose review could not be prepared (importBatch.get → reviewState failed) goes back to reading, and its review is prepared again within a few minutes. Refused with a 409 not_ready when the import is not failed. Only the person who started the import can retry it; anyone who may discard it can Discard instead (importBatch.undo). On an Organize with AI plan the answer is preparing.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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.

Responses

StatusDescription
202OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/import/batches/{batchId}/review

Overview of a held import's review

The overview of an import that is being reviewed before it goes into the library: how many documents go in and into which planned folders, how many are left out and why, signed / draft / template counts, how many end in the next 90 days, what is worth a look, the open questions (current first), the active folder plan and the plans available with their folder counts, and the changes not accepted yet. Every number is counted by the server. Only the person who imported the batch sees names, questions and changes; anyone else gets counts only. For an Organize with AI plan (documents already in the library; nothing moves until Finalize) kind is organize and the organize block counts what the plan moves (by planned folder and across workspaces), the new folders, the older copies marked replaced, the existing tags it adds, the documents linked to a company, what the reader can't move, the access questions (one per group of moves whose people change) and the reminders that stop. 404 when the import is not held for review and is not an organize plan.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/review/changes

Change a held import's review

Makes ONE change to the review of an import that is not in the library yet: set_plan (organize another way), place (put documents — by ids, folder, counterparty, company or question — into a planned folder, an existing folder, a workspace's top level or a new folder), rename_folder, move_folder, create_folder, merge_folders, split_folder_by_year, answer_check, include_left_out, settle (accept changes), and set_stage, set_type, set_title, leave_out (left out by you — never trash), set_company (an import company, a company you can open, or a new one) and set_renewal_owner (null gives the reminders back to each contract's owner). set_type and set_company, in a plan organized by that axis, also move the documents the plan placed into the matching folder, in the same change. The company question takes answer_check with same or different. Only the person who imported the batch can change it, and only while it is ready to review. Returns the recorded change, the rows and folders it touched, and the new review revision. A change that would let more people open documents, marks documents signed without a signature concord.app can see, or — from the chat — touches more than 25 documents is refused with reasonCode needs_tap (with tapReasons and tapCounts) and changes nothing; only a person (never an AI or automation call) may confirm it with confirmTap: true. set_renewal_owner is refused owner_cannot_open when that member cannot open the documents where they will go, and set_company to an existing company company_unreadable when you cannot read it. A change whose documents moved meanwhile (a table cell, another tab) is refused stale_revision and changes nothing. Four ops edit an Organize with AI plan's extras (and a held import's where they make sense): drop_tag (a planned tag), add_tag (an EXISTING tag only — never a new one), keep_both (an older copy is no longer planned as replaced; Finalize dismisses that version question) and mark_replaced (both copies in the plan; the reader must read both and be able to change the older one; never a loop). On an organize plan set_stage, set_type, set_renewal_owner and set_company to a new company are refused not_for_organize (they edit a live document — open the document instead); set_title plans the document's new name, written onto it only at Finalize with the moves; an existing library folder is never renamed or moved, and a move into a place whose people differ opens or joins that group's access question instead of waiting itself. Answering an access question is a person's tap only: it needs confirmTap, and the chat or any AI call is refused 403.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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

NameTypeDescription
op
required
object
origin one of "chat", "chip", "cell", "check"
toolCallId string, or null
confirmTap boolean

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/review/changes/{changeId}/revert

Undo a change to a held import's review

Undoes one recorded change to the review of an import that is not in the library yet, restoring exactly the rows it changed. Refused with reasonCode superseded when a later open change touched the same documents or folders (undo that one first), or when the rows no longer match what the change wrote. Only the person who imported the batch can undo, while it is ready to review. An undo that would let more people open documents, or bring back "signed" without a signature concord.app can see, is refused needs_tap unless a person confirms it with confirmTap: true. Refused once the import is finalized.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
changeId
required
path string
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

NameTypeDescription
confirmTap boolean

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/import/batches/{batchId}/status

Import-batch status and file counts

The SMALL progress record for a bulk-import batch: its status word, the total, processed and failed file counts, whether the import preserves folders, and when it was created. Everything else about the batch — stage, byte progress, scan verification, queue position, per-reason failure counts and the review handoff URL — is on importBatch.get, which reads the same batch at the collection member URL.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/undo

Undo a bulk import

Reverses a finished bulk import: every document the batch created is moved to the trash and the response reports how many were moved. The documents are soft-deleted, not erased — they stay in the trash until someone deletes them permanently — but no published operation takes them back out, and the batch itself is one-way: it is stamped undone and a second call is refused already_undone. Every other refusal is a 409 carrying a reasonCode: the import never started, its status is not undoable, no undo window was recorded, the window recorded on the batch (undoExpiresAt, published by importBatch.get) has passed, or someone has edited an imported agreement since — that last refusal names the edited documents.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/batches/{batchId}/unfinalize

Undo a finalized import

Takes a finalized import back to its review within 72 hours: every document it released leaves the library and is held again, folders it created are removed when empty, and the plan, answers and changes stay as they were, so it can be finalized again. Refused with a 409 naming the documents (data.blockers) when a person edited one since (edited_since), or when a share, share link, guest pass, signature request, task, approval or assignment was created on one (activity_since); after 72 hours the refusal is expired. Send keepChanged: true to undo the others: the documents a person changed or put to work stay in the library as they are (keptCount), every other document goes back to the review. Only the person who started the import can undo it. Notifications already sent are not recalled. On an Organize with AI plan it takes every change of the plan back and ENDS the plan: it can no longer be finalized or discarded (409 "This plan was undone"), and a new plan is started instead. Documents moved since stay where they are (keptCount), and it is refused from an AI or agent call.

Parameters

NameInTypeDescription
batchId
required
path string (uuid)
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

NameTypeDescription
keepChanged boolean

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/import/organize

Organize documents with AI

Opens an Organize with AI plan over documents already in the library: library, one workspace, folders (with their subfolders), picked documents, or a view (the Documents filters and list scope, including Show replaced). concord.app reads them as the caller and plans better folders, older versions marked replaced, tags already in use and company links; nothing moves until the plan is finalized (importBatch.finalize). Answers { batchId, existing, documentCount } — follow importBatch.review on the batch. One open plan per person: while one is open the same plan comes back with existing: true. More than 10000 documents is a 422 too_many; an empty scope is a 422 empty.

Parameters

NameInTypeDescription
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

NameTypeDescription
scope
required
object
label string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

See it on your contracts.

Book a demo

Trusted by teams at

  • 4M+ documents signed since 2014