Authentication

Secure your API requests

Every API request needs to be authenticated with an API key passed via an HTTP header.

Recommended

HTTP
Authorization: Bearer YOUR_API_KEY

Alternative

HTTP
X-API-Key: YOUR_API_KEY
Security best practice

Never expose API keys in client-side code. Keep them in environment variables and call the API from your backend.