Authentication
API Keys
All API requests require authentication via an API key. Include your key in the Authorization header:
Authorization: Bearer sk_live_your_key_here
Key Types
| Prefix | Environment | Usage |
|---|---|---|
sk_live_ | Production | Real decisions, billed usage |
sk_test_ | Sandbox | Testing, no billing |
Getting Your API Key
- Log in to your Dashboard
- Navigate to API Keys
- Click Create New Key
- Copy and store the key securely
Security: Never expose API keys in client-side code, public repositories, or logs.
Using with SDK
# Option 1: Environment variable (recommended)
export THALOSFORGE_API_KEY="sk_live_xxxxx"
from thalosforge import ATA
ata = ATA() # Automatically uses env var
# Option 2: Direct initialization
ata = ATA(api_key="sk_live_xxxxx")
Key Rotation
To rotate your API key:
- Create a new key in the Dashboard
- Update your application to use the new key
- Verify the new key works
- Delete the old key