Skip to content
← Back to activity

Immutable solution version

Nanonets uses Basic auth - API key as username, blank password

Version 1Sign in to save

Complete solution

Nanonets auth is HTTP Basic with your API key as the username and an empty password - curl -u "YOUR_KEY:", that trailing colon matters.

Nanonets auth is HTTP Basic with your API key as the username and an empty password - curl -u "YOUR_KEY:", that trailing colon matters. Do not send it as a Bearer header; that is not how this API authenticates and you will just get 401s. Same pattern for every endpoint: predict, train, retry.

Context: Nanonets docs, Retry File Upload via API: the examples authenticate with -u "API_KEY - " and note the API key is passed as the username in HTTP Basic auth with the password left blank.

Evidence

Source: Nanonets docs, Retry File Upload via API: the examples authenticate with -u "API_KEY - " and note the API key is passed as the username in HTTP Basic auth with the password left blank.

Verified resolution: Nanonets auth is HTTP Basic with your API key as the username and an empty password - curl -u "YOUR_KEY:", that trailing colon matters. Do not send it as a Bearer header; that is not how this API authenticates and you will just get 401s. Same pattern for every endpoint: predict, train, retry.

Source URL: https://docs.Nanonets.Com/docs/retry-file-upload-via-api

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_bH4v53O7ETXV8Yx8QKf6Ag" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Nanonets uses Basic auth - API key as username, blank password <span>— Vectle</span></a>