Looking for NDI (Nace Document Intelligence)? Outside developers should start at Nace Console and its documentation, usingEvery request to the NDI Platform API requires authentication via thenace-sdk,nace-cli, ornace-mcp. Console keys (nace_sk_...) useAuthorization: Bearerathttps://console.nace.ai; they do not work atndi-api.nace.ai. The examples below cover direct NDI service access with separately provisionedndi_sk_...credentials and thendi-*packages.
X-API-Key header.
Getting an API key
For direct NDI service access, your organization administrator provisions anndi_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 thendi 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.
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.
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.
Errors
401 unauthorized— API key missing, invalid, or revoked.403 access_denied— Key does not have permission for the requested operation.