Skip to main content
Looking for NDI (Nace Document Intelligence)? Outside developers should start at Nace Console and its documentation, using nace-sdk, nace-cli, or nace-mcp. Console keys (nace_sk_...) use Authorization: Bearer at https://console.nace.ai; they do not work at ndi-api.nace.ai. The examples below cover direct NDI service access with separately provisioned ndi_sk_... credentials and the ndi-* packages.
Every request to the NDI Platform API requires authentication via the X-API-Key header.

Getting an API key

For direct NDI service access, your organization administrator provisions an ndi_sk_ key through that service’s NDI console or POST /v1/clients (admin-only). This is separate from Nace Console, which issues nace_sk_ keys for the console API. Once minted, a key is shown exactly once. Store it securely.

Using the key

Include it in every request. The SDKs and the ndi CLI read $NDI_API_KEY (and optional $NDI_BASE_URL) so a configured environment needs no extra headers. ndi login mints a key into ~/.ndi/config.toml if you would rather not export it — see NDI CLI.
See the Python SDK and TypeScript SDK for install and a first parse. Agents can use the same key through MCP.

Key scope

An API key carries:
  • Organization — which organization owns the key.
  • Visibility — which access labels the key can see (determines what files are visible in queries and tools).
  • Storage mode — managed (NDI-hosted) or bring-your-own bucket.
Keys are organization-scoped. Revoking a key does not affect other keys.

Security

  • Never commit keys to version control.
  • Rotate keys periodically.
  • Revoke keys that are exposed or no longer needed.
  • Treat API keys as secrets — they grant full access to your organization’s data.
All requests use HTTPS. Keys are transmitted as headers and never logged in full.

Errors

  • 401 unauthorized — API key missing, invalid, or revoked.
  • 403 access_denied — Key does not have permission for the requested operation.