Authentication
Every request needs an API key. All requests use HTTPS to https://api.tychelabs.net.
Sending your key
Send the key in the x-api-key header, or as Authorization: Bearer <key>.
curl https://api.tychelabs.net/v1/account \
-H "x-api-key: $TYCHE_API_KEY"const res = await fetch("https://api.tychelabs.net/v1/account", {
headers: { "x-api-key": process.env.TYCHE_API_KEY },
});import os, requests
requests.get("https://api.tychelabs.net/v1/account",
headers={"x-api-key": os.environ["TYCHE_API_KEY"]}, timeout=10)Live and sandbox keys
tl_live_ keys return live data and count towards your allowances. tl_test_ keys return sandbox fixtures, are free and are never counted. Both belong to the same account and work on every product.
Keeping keys safe
- Keep live keys on your server. Never ship them in a mobile app or browser code.
- Store them in environment variables or a secret manager, not in source control.
- If a key leaks, email [email protected] and we will rotate it the same working day.
Your account
GET /v1/account returns your plans, this month's usage per product and your webhook secret. You can also sign in with your key on this site.