Important: API keys are only shown once. Store them securely and never commit them to version control.
SEER API keys start with df_ followed by 64 hexadecimal characters:
df_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Include your API key in the auth header:
# HTTP Header
Authorization: df_your_api_key_here
# cURL Example
curl -H "Authorization: df_your_api_key_here" \
https://api.seer.ansrstudio.com/monitoring
# Python Example
headers = {"Authorization": "df_your_api_key_here"}
requests.post(url, headers=headers, json=data)# .env file (never commit this!) SEER_API_KEY=df_your_api_key_here # Python import os api_key = os.environ['SEER_API_KEY'] # Node.js const apiKey = process.env.SEER_API_KEY; # Bash export SEER_API_KEY="df_your_api_key_here"
# docker-compose.yml
services:
pipeline:
image: my-pipeline:latest
environment:
- SEER_API_KEY=${SEER_API_KEY}
# Or use Docker secrets
echo "df_your_api_key_here" | docker secret create seer_api_key -import boto3
import json
def get_api_key():
client = boto3.client('secretsmanager')
response = client.get_secret_value(SecretId='seer/api-key')
secret = json.loads(response['SecretString'])
return secret['api_key']
api_key = get_api_key()Create separate API keys for different environments or services:
If a key is compromised, revoke it immediately from the dashboard:
Track API key usage in your dashboard to detect unusual activity: