Authentication
All SOVR API requests require authentication.
Headers
| Header | Required | Description |
|---|---|---|
x-api-key | Yes | Your SOVR API key |
x-tenant-id | Yes | Your tenant identifier |
Content-Type | Yes | Must be application/json |
Example
bash
curl -X POST https://sovrapp.com/api/sovr/gate/check \
-H "Content-Type: application/json" \
-H "x-api-key: sk_live_..." \
-H "x-tenant-id: tenant_abc123" \
-d '{"action": "...", "context": {}}'API Key Types
| Type | Prefix | Use Case |
|---|---|---|
| Live | sk_live_ | Production |
| Test | sk_test_ | Development |
Getting API Keys
- Log in to sovrapp.com
- Navigate to Settings → API Keys
- Click Create New Key
- Copy and securely store your key
WARNING
API keys are shown only once. Store them securely.
Best Practices
- Never commit API keys to version control
- Use environment variables
- Rotate keys periodically
- Use test keys for development