Full API Keys Documentation
Need more details? View the complete API Keys guide with security best practices and advanced features.
What You’ll Learn
Create Your First Key
Generate an API key in under 2 minutes
Authenticate Requests
Make your first authenticated API call
Test & Verify
Verify your API key is working correctly
Best Practices
Learn essential security practices
Step 1: Create Your API Key
- Dashboard
- API
Using the Dashboard
- Log in to your NeuroAI account
- Navigate to Settings → Users and Teams → API Keys
- Click Create API Key
-
Fill in the details:
- Click Create
Step 2: Store Your API Key Securely
Never commit API keys to version control or hardcode them in your application source code.
.env file in your project directory:
.env to your .gitignore:
Step 3: Make Your First API Call
- cURL
- Python
- Node.js
Step 4: Verify Your API Key
Test that your API key is valid and check its permissions:✅ If you see
"valid": true, your API key is working correctly!Common API Operations
Now that your API key is set up, try these common operations:List Agents
Create Task
Upload File
Get Task Status
Example: Create a Task
Security Best Practices
Environment Variables
Store keys in
.env files, never in source codeSeparate Keys
Use different keys for dev, staging, and production
Rotate Regularly
Change your API keys every 90 days
Monitor Usage
Track API key activity for suspicious patterns
Quick Security Checklist
- ✅ Store API keys in environment variables
- ✅ Add
.envto.gitignore - ✅ Use separate keys per environment
- ✅ Set expiration dates for keys
- ✅ Use minimum required permissions
- ❌ Never commit keys to version control
- ❌ Don’t share keys via email or chat
- ❌ Avoid logging API keys
Troubleshooting
401 Unauthorized Error
401 Unauthorized Error
403 Forbidden Error
403 Forbidden Error
Problem: Your API key doesn’t have permission for this operation.Solutions:
- Check your API key’s role and permissions
- Use a key with higher privileges (e.g., Administrator)
- Create a new key with the required permissions
Can't Find My API Key
Can't Find My API Key
Problem: You lost or forgot your API key.Solutions:
- API keys cannot be retrieved after creation
- Create a new API key from the dashboard
- Revoke the old key if you’re concerned about security
- Update your applications with the new key
Environment Variables Not Loading
Environment Variables Not Loading
Problem: Your code can’t read the API key from Solutions for Node.js:Verify the file exists:
.env.Solutions for Python:Next Steps
Full API Keys Guide
Learn about key types, permissions, and advanced features
API Reference
Explore all available API endpoints
Security Guide
Deep dive into API key security
Rate Limits
Understand API rate limits and quotas
Webhooks
Set up real-time notifications
Examples
View complete integration examples
Quick Reference
Authentication Headers
Authentication Headers
Bearer Token (Recommended):X-API-Key Header:Query Parameter (Not recommended for production):
Environment Setup
Environment Setup
Create .env file:Load in Python:Load in Node.js:
Common Endpoints
Common Endpoints
- Verify Key:
GET /v1/auth/verify - List Agents:
GET /v1/agents - Create Task:
POST /v1/tasks - Get Task:
GET /v1/tasks/{task_id} - Upload File:
POST /v1/files - List API Keys:
GET /v1/api-keys
API Key Management
API Key Management
Create Key:List Keys:Rotate Key:Delete Key:
Get Help
Documentation
Browse comprehensive guides and tutorials
API Status
Check real-time API availability
Support
Contact our support team
Community
Join the developer community
