Authorization header. Keys are scoped to your organization and inherit the permissions of the user who created them.
Base URL
Authentication Header
Authorization header returns 401 Unauthorized.
API Key Types
Ops Tip: Generate and manage API keys in the Dashboard under Developers → API Keys. No API call required.
Generating a Key
1
Navigate to API Keys
Open Developers → API Keys in the NearNode Console.
2
Create Key
Click Create Key. Assign a label (e.g.,
n8n-production, mobile-app-v2).3
Copy Immediately
The full key is shown once. Copy it to your secrets manager. It cannot be retrieved again.
4
Set Permissions (Optional)
Restrict the key to specific scopes:
nodes:read, nodes:write, batches:write, analytics:read, webhooks:manage.Key Scopes
A key with no explicit scopes has full access (equivalent to the creating user’s role).
Response Format
All responses follow a consistent envelope:HTTP Status Codes
Key Rotation
Rotate keys without downtime:- Create a new key with the same scopes
- Update your integration to use the new key
- Verify traffic flows on the new key (check Developers → API Keys → Last Used)
- Revoke the old key
Security Best Practices
Never expose keys client-side
Never expose keys client-side
API keys belong in server-side code, environment variables, or secrets managers. Never embed them in frontend JavaScript, mobile apps, or version control.
Use scoped keys
Use scoped keys
A key that only needs to read analytics should not have
nodes:write access. Scope keys to the minimum permissions required.Rotate regularly
Rotate regularly
Rotate production keys every 90 days. The Dashboard shows Last Used timestamps to identify stale keys.
Monitor usage
Monitor usage
The Developers → API Keys page shows request counts and last-used timestamps per key. Unusual spikes may indicate a compromised key.