Tyche Labs data APIs
Docs menu: Authentication

Authentication

Every request needs an API key. All requests use HTTPS to https://api.tychelabs.net.

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"

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.