Authentication

The Synth API uses API key authentication. All requests must include your API key in the Authorization header.

Getting an API Key

2

Choose a plan

Sign up for the Professional or Enterprise plan

3

Generate key

Generate a new API Key

Using Your API Key

Include your API key in the Authorization header:

Authorization: Apikey YOUR_API_KEY

Example

curl
curl "https://api.synthdata.co/insights/volatility?asset=BTC" \
  -H "Authorization: Apikey YOUR_API_KEY"

Security

circle-exclamation
python
import os

api_key = os.environ.get("SYNTH_API_KEY")
headers = {"Authorization": f"Apikey {api_key}"}

Last updated