X-API-Key header.
Obtaining an API key
Sign up or log in to the Developer Portal to generate an API key.Using your API key
Include theX-API-Key header in every request:
Error responses
If the API key is missing or invalid, the API returns a401 Unauthorized response:
Best practices
Keep your key secret
Keep your key secret
Never commit API keys to version control or expose them in client-side code. Use environment variables or a secrets
manager to store them.
Use environment variables
Use environment variables
Store your key in an environment variable and reference it in your code:
Rotate keys periodically
Rotate keys periodically
Generate a new key from the Developer Portal and update your applications. Revoke old keys once the new key is
deployed.
