5 min readUpdated 2024-11-28
API Authentication
Learn how to authenticate with the NeuroCron API.
Overview
NeuroCron uses Bearer Token authentication for all API requests.
Getting Your API Key
- Log in to your NeuroCron account
- Go to **Settings → API Keys**
- Click **Generate New Key**
- Copy and securely store your key
⚠️ API keys are shown only once. Store them securely.
Using Your API Key
Include the key in the Authorization header:
curl -X GET "https://api.neurocron.com/v1/campaigns" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Rate Limits
| Plan | Requests/Minute | Requests/Day |
|---|---|---|
| Free | 60 | 1,000 |
| Starter | 120 | 10,000 |
| Growth | 300 | 50,000 |
| Enterprise | Custom | Custom |
Error Responses
401 Unauthorized
Invalid or missing API key
403 Forbidden
API key lacks required permissions
429 Rate Limited
Too many requests - includes retry_after value
Security Best Practices
- Never commit keys to version control
- Use environment variables
- Rotate keys regularly
- Use minimum permissions required