Error response format
When a request fails, NDI returns a typed error:code— Machine-readable identifier. Treat it as an open enum so new codes remain compatible.message— Human-readable explanation.detail— Operation-specific context (e.g., validation field errors).nullwhen the code carries no additional payload.retryable— Whether retrying the identical request could succeed.request_id— Per-request correlation id; matches theX-Request-Idresponse header.
Error codes
Malware scanning
On deployments that enforce private malware scanning, uploads remain separate from ingestion. Uploading a file does not make it eligible for processing, download or preview. NDI requires a clean verdict for the immutable source bytes.
Both attachment and inline download links are withheld without an accepted scan.
File listing and authorized deletion remain available. Historical generated job
results can be withheld after an operator enables scanning; resubmit their original
input. The same codes can appear in a failed job’s
error.code, file details,
metadata, and content tools. Upload size limits are unchanged, but the scan limit
may be lower; successful upload does not promise acceptance for processing.
Decrypt encrypted input before upload: a parser password cannot bypass scanning.
Parse-result source reuse is unavailable under enforcement; submit the original.
These error codes are additive, and older SDKs accept them as open-enum values.
invalid_request
Missing required field, wrong type, value out of range, or extra field on a
strict model. Send integers, numbers and booleans as JSON numbers and
true/false. A string ("start": "1", "include_images": "true"), 1 or
0 for a boolean, and true for an integer are wrong types. An integral
number such as 2.0 is a valid integer. NDI currently converts and accepts
these values. A future release will refuse them with 422, so correct any
client that sends them. That check runs after authentication, like every
other body error. A request without a valid API key still answers 401.
detail.errors lists each refused field. POST /v1/systemone
also returns detail.issues: one {path, message} per refused field, by
dotted path (questions.risk.criteria).
POST /v1/workspaces/{workspace_id}/knowledge-graph/builds also returns this
code when the workspace has no ingested files. That refusal happens before a
job or workflow is created. Ingest files first, then build.
Parse, Split, Classify and Extract also return it when every page in
page_ranges is past the end of the document, for example
Pages 14-20 are outside the document, which has 12 pages. The job fails
and retrying the same request cannot succeed. Keep ranges within the document.
A range that extends past the last page can fail even when it includes existing
pages.
HTTP: 422
unsupported_file_type
Source format not supported by the upload boundary or requested operation, or
a conclusive byte signature conflicts with the filename extension. Single-shot
and staged uploads fail synchronously before a workspace file or operation job
is created. A resumable upload reports the same error on its completion job,
without creating a workspace file or ingestion job. Change the input format or
select an operation that supports it; the same request is not retryable.
Multipart Content-Type is not authoritative.
HTTP: 422
file_too_large
Uploaded file exceeds the size limit for POST /v1/uploads.
Also returned when a job file, complete Markdown, row page or OCR data stored in customer storage
exceeds the service’s delivery budget. A Range header does not avoid the limit, because NDI
verifies the whole object before sending any bytes. The budget includes temporary verification
and decoded copies, so content can be refused even when its own size is under the limit.
For PDF ingestion, the same code can appear in the failed file’s last_error.code when
the PDF exceeds the parse resource limit, or when an Office source exceeds the
conversion size limit.
Parse and Ground jobs on an Office source over the conversion size limit also fail with
file_too_large. The message names the file’s size and the limit, for example
“The Office file is 64.9 MB, which is larger than the 50 MB conversion limit.”
HTTP: 413
path_conflict
A different file already occupies that workspace path and on_conflict is reject: the
bytes or the metadata (labels, graph_inclusion) differ. Re-uploading identical bytes and
metadata is not a conflict; it returns the existing file with deduplicated: true.
HTTP: 409
file_not_ingested
A synchronous workspace tool call (such as read-file, qa-file, or
query-tables) ran against a file that has not been ingested. Search only
sees ingested files, so it skips un-ingested ones instead of returning this error.
HTTP: 409
upload_expired
The granular upload handle expired, or a resumable upload session expired,
already completed, or was aborted.
HTTP: 409
queue_timeout
The job waited in the queue past its deadline and NDI never started it. Nothing ran and nothing was
charged. It is the error.code on that job, which GET /v1/jobs/{id} still returns with status: "failed".
Send the request again with a new Idempotency-Key; the old key returns this failed job.
HTTP: 504, retryable
funding_expired
The execution funding on a queued job expired while it waited, so NDI never started it. Nothing ran and
nothing was charged. It is the error.code on that job, which GET /v1/jobs/{id} still returns with
status: "failed". Send the request again with fresh funding and a new Idempotency-Key; the old key
returns this failed job.
HTTP: 504, retryable
job_not_cancellable
The job is already terminal.
HTTP: 409
job_cancelled
The job, or the job it ran for, was cancelled. A cancelled job serves no
results, so reads of its result rows, groundings, presentations or result pages are refused.
A job cancelled before completion is not charged, including results already delivered before the cancel.
GET /v1/jobs/{id} still returns the job, with result_state: "cancelled". It is also the
error.code on a job you cancelled.
HTTP: 409
result_expired
The job row exists but its payload was removed by explicit deletion or Zero retention. Agent activity routes also return it for jobs in customer-storage workspaces, where activity traces are not recorded.
HTTP: 410
range_not_satisfiable
A byte-range request (artifact or crop) is outside the object.
HTTP: 416
unauthorized
API key missing, invalid, or revoked.
HTTP: 401
access_denied
Operation not allowed for this key (e.g., session belongs to a different key).
HTTP: 403
workspace_not_found
Workspace does not exist (or the key cannot see it).
HTTP: 404
file_not_found
File or output does not exist.
For a tool that takes a path, the path must be the file’s full path relative
to the workspace root, exactly as uploaded: not a bare file name, a folder, a
file id, or a path that starts with the workspace id. The error is final for
that path; do not retry it or guess variants. Find the real path with
folder metadata (name_contains) or take
source_path from a search result. See File paths.
A document job can also fail with file_not_found when a mutable customer-storage source object disappears
after acceptance, including during Parse-result reuse. Restore or upload the source, reconcile the workspace,
and submit a new job. Missing immutable source-version objects return storage_conflict instead.
HTTP: 404
job_not_found
Job does not exist for this key.
HTTP: 404
session_not_found
Intelligent-search session ID does not exist in this workspace, or it is the ID of a follow-up job rather than the thread root.
HTTP: 404
kg_not_built
Knowledge-graph tool called on a workspace with no built graph.
HTTP: 409
kg_build_in_progress
A knowledge-graph build is already running for this workspace.
HTTP: 409
ledger_understanding_not_found
The workspace has never produced a ledger-understanding report. Start one
with POST /v1/workspaces/{id}/ledger-understanding; ingestion doesn’t
start one.
HTTP: 404
ledger_understanding_in_progress
A ledger-understanding run is already in flight for this workspace. Wait
for that job, or read the current report with GET.
HTTP: 409
workspace_deleting
Operation attempted on a workspace that is currently being deleted.
HTTP: 409
session_busy
A QA (or deprecated deep-search) conversation is still answering a previous turn.
HTTP: 409
rate_limited
Per-key requests-per-minute limit hit, or a job queue is at its safety limit (error.detail.scope is
tenant or global). Retry-After says when to send the request again.
HTTP: 429
concurrency_limit_reached
Per-key concurrent-jobs cap hit.
HTTP: 429
quota_exceeded
Your organization has used its included work allowance and paid usage is not enabled.
New jobs that use credits are refused and not charged. Jobs you already started, and cancelled or failed ones, count against the allowance by their priced work, so the line holds even when a burst of jobs is accepted just under it. Uploading, replacing and deleting
files, and deleting workspaces, use no credits and still work. Retrying does not help:
contact support to enable paid usage. Failed and cancelled jobs are not charged, but their priced work still
counts toward this admission limit. Its detail.credits_used includes reserved, failed and cancelled work and
can exceed the billable credits_total reported by GET /v1/usage. Images that a schedule 5 or 7 extract or ground job reads without charge also count toward this limit, so credits_used can exceed credits_total even when every job succeeded.
HTTP: 402
storage_limit_exceeded
The upload or new version would take the account’s current source files past its workspace storage allowance.
The allowance is shared by all of the tenant’s managed workspaces and counts only the current version of each
uploaded source file; generated outputs, older versions, staged uploads and customer-storage workspaces don’t count.
Capacity is checked only when the actual file is published, including a resumable completion’s worker.
Grant and session authorization do not query remaining space, so declared-size requests cannot probe hidden
source sizes without uploading bytes. A completion may fail with this code in the job’s error.code.
Re-uploading identical content, replacing a file with a smaller one, reading and deleting files keep working
while over the allowance. Both HTTP refusals and failed jobs omit quota byte details: net growth would reveal
an existing source’s size to a write-only upload token. Delete files or ask for a higher allowance before retrying.
HTTP: 409
corrupt_file
File could not be processed because it is corrupt or not the format its extension claims.
For example an Office file that is not a zip package, a truncated Parquet, or a PDF with no pages. Retrying the same file cannot succeed.
HTTP: 422 when a synchronous read (row pages, workspace tools) finds the source changed or its
ingestion metadata stale. Otherwise used in job failure error.code (the document job status is
"failed").
This code and the following file-processing codes can also appear in a failed file’s
last_error.code. An ingestion job may succeed while individual file outcomes fail;
check each file’s ingestion status and error.
encrypted_file
File is password-protected or encrypted and cannot be read.
HTTP: Used in job failure error.code and a failed file’s last_error.code.
conversion_failed
File could not be converted to a parseable format.
When the conversion ran over its time, memory or output limit, or the file is unreadable or holds
content not allowed for safe processing (such as macros or embedded controls), the message says so
and what to do, for example “The document could not be converted to PDF within the processing limits
(time, memory or output size). Simplify or split it and upload again.”
HTTP: Used in job failure error.code and a failed file’s last_error.code.
ocr_failed
Text recognition failed for the file.
HTTP: Used in job failure error.code and a failed file’s last_error.code.
parse_failed
The file could not be parsed for a reason not covered by a more specific code above; message
carries the parser’s reason.
HTTP: Used in job failure error.code and a failed file’s last_error.code.
not_implemented
This deployment does not offer the operation; for example, POST /v1/systemone
on a deployment without a decision model.
HTTP: 501
storage_conflict
Workspace creation cannot continue with this Idempotency-Key: the key was used
with a different body, its workspace was deleted, or its attempt was abandoned.
Also returned when the storage namespace already holds objects. Do not retry
with the same key and body.
On a job read, storage_conflict in result_error means a source workspace’s
storage binding is missing or no longer matches, so its
retained content is withheld. Content reads for that job return the same error.
A download from customer storage also returns storage_conflict when a published result
object was changed or removed after the job completed, or stored content fails integrity verification.
Artifact downloads (files, images, crops, Markdown, rows) from a customer-storage job whose output is not retained, such as a zero-retention job, always return this error; run the job with retained output. In managed storage, missing temporary Markdown content returns the same error while its job remains available.
A document job also fails with storage_conflict when a source read or pre-publication ledger check detects
that its workspace source changed after acceptance.
For a file written directly to customer storage and picked up by reconcile, this includes an edit of the same
size and an edit picked up by a later reconcile. Reconcile, then submit a new job. A job that can read only
retained Parse members continues to use that saved result. Another Parse can copy a retained spreadsheet;
Split, Extract and Ground need retained document Markdown or the unchanged original. Otherwise run Parse again
on the current file. Direct cloud edits enter the ledger when workspace reconciliation observes them.
NDI verifies the content before sending any bytes.
HTTP: 409
ingestion_superseded
A later ingestion of the same file took over its output while this run was still working on it. NDI
records that file as skipped_superseded in the ingestion result and does not fail the job for it.
You should not see this code on a job. The later ingestion’s job holds the file’s result.
HTTP: 409
storage_auth_required
The storage connection is not ready. Validate or reconnect it, then retry. A job
whose source workspace uses that connection reports this code in result_error
until access is restored.
HTTP: 424
storage_unavailable
Workspace creation with this key is still running, or its storage claim did not
finish in time. Retry with the same key and body; the response may include
Retry-After.
Also returned when a customer-storage download or row page cannot obtain temporary capacity or finish
verification in time. Retry later. If a transfer has already started when its deadline expires,
NDI closes the incomplete transfer; retry the download.
A JE v2 job can also report this when its prepared ledger package remains unreadable on managed storage
after a bounded retry. Retry the job.
Also returned when a workspace file upload or replace cannot write to storage. No file is
recorded. Retry the upload. If you used an upload grant, mint a new grant first, because
the failed attempt consumed it.
HTTP: 503
model_call_limit_exceeded
The job made the most model calls one job may make, counting retries and the
citation and evidence passes. This protects against a run that keeps calling
models without converging. Retrying the same request fails the same way: split
the document or narrow the schema. The response marks this code as not retryable.
HTTP: 422
upstream_unavailable
A service NDI depends on, such as a model, failed or did not answer in time.
The response marks this code as retryable.
HTTP: 503
internal_error
Unexpected server error. The response marks this code as retryable.
The message is generic and a failed job’s detail is null: NDI never returns
the underlying exception, which can name internal systems. If retrying fails
again, contact support with the job ID (or the request_id of a failed HTTP
call).
HTTP: 500
HTTP status codes
Rate limits
Per API key:- Concurrent jobs: Configurable per key; when the cap is hit, new job-creating requests return
429 concurrency_limit_reached. - RPM (requests per minute): Enforced per key via Redis (no-ops when Redis is unavailable in local dev). When the cap is hit, requests return
429 rate_limited.
Retry strategy
For429 or 5xx errors:
- Include
Idempotency-Keyto ensure replay is safe. - Wait with exponential backoff:
wait = min(2^attempt, 60)seconds. - Retry up to 5 times before giving up.
wait_seconds timeout
When a job does not complete within ?wait_seconds= (max 300), the endpoint
returns 202 (not 408). The job continues running; poll it.