API Keys
All API requests require an API key passed in thex-api-key header.
Getting an API Key
Security Best Practices
Never expose your API key in client-side code
API keys should only be used in server-side code. Never include them in JavaScript running in the browser.Use environment variables
Store your API key in environment variables, not in source code.Rotate keys if compromised
If you suspect your API key has been compromised, delete it immediately from the API Keys console and create a new one.Error Responses
API v3 answers errors as
{"error": {"code", "message", "request_id"}}; the legacy endpoints as {"error": "<message>"}. See Errors.