Authentication methods
Alphacast supports two ways to pass your API key. HTTP Basic Auth is the recommended option for most integrations.- HTTP Basic Auth (recommended)
- Query parameter
Pass your API key as the username with an empty password. Credentials travel in the The colon after the API key (in
Authorization header, never in the URL.curl) and the empty string as the second element of the auth tuple (in Python) indicate an empty password. Most HTTP clients accept this convention without additional configuration.Authentication errors
If a request is missing credentials or the API key is invalid, the API responds with HTTP401 Unauthorized:
- The API key was not included in the request
- The API key has been revoked or regenerated
- The key was passed as the password instead of the username in Basic Auth