Authentication
401 / missing key. SendX-API-Key: ndi_sk_…. Authorization: Bearer works
on hosted MCP only. Check $NDI_API_KEY is exported in the same shell as the
client.
Wrong host. Default base is https://ndi-api.nace.ai. Local stacks need
$NDI_BASE_URL. Paths are /v1/..., not /api/v1/....
See Authentication.
Invalid requests
422invalid_request. Extra JSON fields on a strict body — especially
wait_seconds or Idempotency-Key inside JSON. Those are a query parameter
and a header.
Classify with parse_result. Classify reuses the Parse job’s stored text. A spreadsheet
Parse or a multi-page Parse saved without page markers returns invalid_request. If the stored text is gone,
the job fails with result_expired. Send the original document instead. Historical audio/video results cannot start new processing.
qa_file on Excel. Use query tables.
Access labels as strings. Workspace access.labels is
[{ "name", "description" }, ...]. Names cannot contain hyphens.
Uploads
upload_expired. This can describe a legacy expiring upload. Ordinary uploads no longer expire.
Zero-retention uploads expire automatically.
file_too_large. Use a workspace upload session
(SDK auto-chunks at 32 MiB) or tighten max_bytes on a grant.
path_conflict. A different file already occupies the workspace path. Pass
on_conflict=new_version or pick another path. Re-uploading the same bytes and metadata
is not a conflict: it returns deduplicated: true.
Browser 401 on grant redeem. Send X-Upload-Token, not your API key.
Ingestion and coverage
Search or QA returns nothing. Upload does not ingest. Call ingest, then retry. Search only sees ingested files; un-ingested files are invisible to it. A synchronous tool call on a file that is not ingested answersfile_not_ingested (409).
coverage.restricted_candidates > 0. Your key is missing labels listed in
labels_required. See Access labels.
Stale results after replace. Ingest with stale_only=True or run
reconcile.
Jobs
Stuck inqueued / running. Poll GET /v1/jobs/{id} or stream
/events. Cancel with POST /v1/jobs/{id}/cancel. job_not_cancellable means
it already finished.
result_expired. The job row remains after its content was removed.
Ordinary results and requests remain until explicit deletion; Zero retention returns not_retained.
zsh poll loop parse error. Compare STATUS with ==, not
=~ succeeded|failed|cancelled.
Rate and concurrency
429. Back off usingRetry-After if present. SDK clients retry idempotent
reads and replay-safe writes that carry an Idempotency-Key.
Slow batch. Share one AsyncNdiClient / NdiClient across tasks. Opening
a client per file exhausts the connection pool.
Search sessions
QA follow-up ignores context. Pass the previous turn’sanswer.session_id.
Do not reuse one session across a suite of unrelated questions. Automatic
search keeps no conversation; ask follow-ups with QA.
SDK parity
TypeScript does not wrap catalog-table paging (filtered-search with a cursor), jobs.request, or jobs.delete. Call those HTTP routes. Extraction schema CRUD is REST-only
in both languages.
See Errors and limits.