Data as a Service

Sport Data API

Managing API keys

Create, name, rename and revoke Warehouse Data API keys on the platform, and use them safely.

Keys are managed on platform.altsportsleagues.ai under API Keys in the dashboard sidebar.

Create a key

Give the key a name (up to 200 characters) that says where it will run, such as staging-backend or analytics-notebook, then create it.

The full secret is shown once, in the dialog that appears. Copy it and store it in your secret manager or environment. After you close the dialog, the list only ever shows the last four characters.

Keys look like this:

asd_live_4f0c9e…(32 characters)

Send it on every request:

curl -s "https://platform-api.altsportsleagues.ai/v1/sports" \
  -H "Authorization: Bearer $ASD_API_KEY"

This key is for the Warehouse Data API only

Platform keys work against platform-api.altsportsleagues.ai. They do not work on the Odds API at api.altsportsdata.com, which uses a different X-API-Key credential. The same platform key does reach odds through /v1/odds/*.

Rename

Rename a key at any time from the list. Renaming does not change the secret, so running code keeps working.

Revoke

Revoking deletes the key. It stops authenticating within about a minute (the API caches a valid key for up to 60 seconds) and cannot be restored. To rotate, create the new key first, deploy it, then revoke the old one.

Last used

The list shows when each key last authenticated. Because of the same 60-second cache, this time can lag behind your most recent call by up to a minute.

Keep keys safe

  • Call the API from your server, never from a browser or mobile app, where the key would be visible. The API also refuses browser calls from other websites (CORS), so a frontend must go through your backend.
  • Use one key per environment or service, so revoking one does not take down the others.
  • If a key leaks, revoke it straight away and create a replacement.
  • Quote the X-Request-Id header (never the key) when you contact support.

Sandbox and certification

There is no separate sandbox. A key that starts asd_test_ reaches the same data and the same limits as an asd_live_ key; the prefix only labels the key. There are no frozen fixtures and no replay of past events, so certify an integration against live data: walk a completed season with a test key, compare your stored rows against a fresh pull, and check the X-Request-Id of any call you want ALT Sports Data to look at.

What a key can do

During the preview, every key reads all four product sports and every API group, with the Free limits. A key's real allowance is always in its X-RateLimit-* headers; see Errors, limits and plans. A revoked, suspended or unknown key gets the same 401 unauthorized.

On this page