Authentication
Every API request must include your API key in the Authorization header.
Header format
Authorization: Bearer nsc_live_YOUR_API_KEYGetting your key
- Sign in at nascentist.ai
- Go to Dashboard → API Keys
- Click "Create new key"
- Copy the key immediately (shown only once)
Security rules
- ✕Never put API keys in client-side JavaScript
- ✕Never commit keys to Git
- ✓Use environment variables (.env files)
- ✓Rotate keys regularly
- ✓Revoke immediately if compromised
Error responses
| Status | Code | Description |
|---|---|---|
| 401 | authentication_error | Missing or invalid API key |
| 403 | permission_denied | API key has been revoked |
Example error response
{
"error": {
"code": "authentication_error",
"message": "Invalid API key"
}
}