Authorization header.
Getting an API Key
You generate API keys from the nodepick.ai dashboard. Follow these steps:- If you don’t have an account yet, register at nodepick.ai and log in.
- Set up your credit card in the dashboard.
- In the left-hand navigation, open Developer, then go to API Keys.
- Click Generate and give the key a descriptive name (for example,
devorci-pipeline). - Copy and save the key immediately — it will not be shown again after you leave the page.
Using Your API Key with the Python SDK
Pass your API key to thenodepick constructor when you initialize a client:
client automatically includes your key in request headers.
Using Your API Key with the HTTP API
Include your API key as aBearer token in the Authorization header of every HTTP request:
YOUR_API_KEY with the key generated in the dashboard.
Keeping Your API Key Secure
The recommended approach is to load your API key from an environment variable at runtime:.env file and load it with python-dotenv. Ensure .env is listed in your .gitignore file so it is never committed.
Rotating Keys
If you suspect a key has been compromised:- Open Developer Settings in the dashboard.
- Click Generate to create a replacement key.
- Update your applications or environment variables with the new key.
- Delete the old key. Key deletion is immediate and permanent — any request sent with a deleted key returns a
401 Unauthorizederror.
Common Authentication Errors
All authentication error responses return a consistent JSON payload: