Authentication Methods
CorrData supports two authentication methods:
- API Keys - For server-to-server integrations
- JWT Tokens - For user-based authentication
API Keys
Creating an API Key
- Log in to the CorrData dashboard
- Navigate to Settings > API Keys
- Click Create API Key
- Copy the key (it won’t be shown again)
Using API Keys
Include the API key in the Authorization header:
JWT Authentication
For user-based authentication, obtain a JWT token via the login endpoint.
Login
Response:
Using JWT Tokens
Refreshing Tokens
API Key Scopes
API keys can be scoped to limit access:
Checking Scopes
The /auth/introspect endpoint returns key information:
Security Best Practices
Never expose API keys in client-side code or public repositories.
Recommendations
- Rotate keys regularly - Create new keys and deprecate old ones
- Use minimal scopes - Only request necessary permissions
- Store securely - Use environment variables or secret managers
- Monitor usage - Review API logs for suspicious activity
Environment Variables
Troubleshooting
Common Errors