Authentication
Learn how to authenticate requests using API keys and bearer tokens.
Authentication
All API requests must be authenticated. We support API key authentication via the Authorization header.
API Keys
Generate an API key from your dashboard. Keep it secret — never expose it in client-side code.
Bearer Tokens
Pass your key as a bearer token in the Authorization header of every request.
JavaScript
```javascript
const client = new AcmeClient({
apiKey: process.env.ACME_API_KEY,
});
```