Authentication

Authenticate with the ThalosForge API

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

PrefixEnvironmentUsage
sk_live_ProductionReal decisions, billed usage
sk_test_SandboxTesting, no billing

Getting Your API Key

  1. Log in to your Dashboard
  2. Navigate to API Keys
  3. Click Create New Key
  4. 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:

  1. Create a new key in the Dashboard
  2. Update your application to use the new key
  3. Verify the new key works
  4. Delete the old key