API Keys & Authentication
Generating an API Key
In the Arkham User Interface:
- Go to Settings → scroll to API Keys
- Click Create key
- Name the key (e.g.,
prod-backend,staging,research-laptop) - Copy it once and store it securely (password manager / secret manager)
Store Securely
Your API key is only shown once. Store it immediately in a secure location.
Using the API Key
All API requests must include a valid API-Key header. Requests without it will be rejected as unauthorized.
Header format:
API-Key: <YOUR_API_KEY>Example (curl):
bash
curl -H "API-Key: <YOUR_API_KEY>" "https://api.arkm.com/..."Multiple Keys
Yes, you can have multiple keys. Best practice:
- Separate keys per environment (prod / staging / dev)
- Separate keys per service (backend / analytics job / partner integration)
This makes rotation and incident containment much easier.
Rotating or Revoking Keys
- Create a new key
- Deploy it and confirm requests succeed
- Revoke the old key in the dashboard
REST vs WebSocket
The Arkham API offers two kinds of endpoints:
REST (HTTPS)
Lookups, history, analytics, enrichment
WebSocket (streaming)
Real-time updates, live feeds, events
When to Use REST
- Historical data
- Deterministic queries
- Batch jobs and enrichment
- Easy retry logic
When to Use WebSocket
- Low-latency updates
- Continuous streaming without polling
- Event-driven systems
Tip
WebSockets are for "what's changing right now"; REST is for "give me the full state / history."