Authentication
The Synth API uses API key authentication. All requests must include your API key in the Authorization header.
Getting an API Key
1
Login
Go to your Synth Dashboard
Using Your API Key
Include your API key in the Authorization header:
Authorization: Apikey YOUR_API_KEYExample
curl "https://api.synthdata.co/insights/volatility?asset=BTC" \
-H "Authorization: Apikey YOUR_API_KEY"Security
Never commit keys to version control
Use environment variables
Rotate keys regularly
import os
api_key = os.environ.get("SYNTH_API_KEY")
headers = {"Authorization": f"Apikey {api_key}"}Last updated