DATASTORETHE RACING NOTEBOOK
Discover/API/API authentication
API / GUIDE

API authentication

Keep your key private and authenticate each request.

Create and replace a key

Sign in and open API management. Generate a key, copy it once and store it in an environment variable or secret store. Replacing it revokes previous keys. Account, application and key status must all be active.

Send the credential

Use the X-API-Key header or Authorization: Bearer with your key. Never put it in a shared URL, committed source or public browser bundle. A revoked or disabled credential returns HTTP 401. Your website sign-in cookie is not an API key.