Authentication Methods
Atlas uses two authentication mechanisms depending on which API you’re calling:API Key Authentication
Used for all domain event endpoints:/api/v1/user, /api/v1/transaction, /api/v1/casino, /api/v1/sport.
Get Your API Key
- Log in to app.atlas.io
- Navigate to Settings → API Keys
- Click Create API Key
- Name it (e.g.,
Production - Events) and select the brand - Copy the key — it is only shown once
Use the API Key
Pass the key in theX-API-Key header on every request:
API Key Best Practices
Do:- Store in environment variables or a secrets manager (AWS Secrets Manager, HashiCorp Vault)
- Create separate keys for
stagingandproduction - Rotate keys periodically (every 90 days recommended)
- Delete unused keys immediately
API Key Rotation
- Create a new key in Dashboard → Settings → API Keys
- Deploy your new key to your environment
- Verify events are flowing with the new key
- Delete the old key
JWT Bearer Authentication
Used for the generic events endpoint (/v1/events) and all Backend API calls.
Obtaining a Token
Use the JWT Token
Token Lifecycle
Multi-Organization Context
If your user account belongs to multiple organizations, you must select the active organization after login:Google OAuth
Atlas supports Google login for dashboard access:- Navigate to app.atlas.io/login
- Click Continue with Google
- Complete Google’s authentication flow
- You’ll be redirected to the Dashboard
Google accounts and email/password accounts with the same email address are automatically
linked to the same Atlas user. You can use either method to log in.