Skip to main content

Authentication Methods

CorrData supports two authentication methods:
  1. API Keys - For server-to-server integrations
  2. JWT Tokens - For user-based authentication

API Keys

Creating an API Key

  1. Log in to the CorrData dashboard
  2. Navigate to Settings > API Keys
  3. Click Create API Key
  4. 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

  1. Rotate keys regularly - Create new keys and deprecate old ones
  2. Use minimal scopes - Only request necessary permissions
  3. Store securely - Use environment variables or secret managers
  4. Monitor usage - Review API logs for suspicious activity

Environment Variables

Troubleshooting

Common Errors