Getting an API Key
You generate API keys from the Nodepick dashboard. Follow these steps:- Log in to your account at nodepick.ai
- Open the Dashboard and navigate to Developer Settings
- Click Create API Key
- Give the key a descriptive name (for example,
local-devorci-pipeline) - Copy 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 will automatically include your key in the request headers. You do not need to handle authentication yourself beyond this single initialization step.
Using Your API Key with the HTTP API
Include your API key as aBearer token in the Authorization header of every request:
YOUR_API_KEY with the key you 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 a library like python-dotenv. Make sure to add .env to your .gitignore so it is never committed.
Common Authentication Errors
If you receive a
401, double-check that the key is being passed correctly and that it has not been revoked. If you receive a 403, verify that the key you are using was created with the appropriate access level.