To authenticate to the Acme Billing API, send your API key in the X-API-Key HTTP header with every request:
curl https://acme-billing.redocly.app/_mock/apis/billing/invoices \ -H "X-API-Key: YOUR_API_KEY"
Getting an API Key
- Sign in to the Acme Billing dashboard.
- Navigate to Settings > API keys.
- Select Create key, provide a name, and select Create.
- Copy and securely store the key (it is shown only once).
Requests missing the header or using an invalid key receive a 401 Unauthorized response. When using the sandbox environment, any non-empty value in the X-API-Key header is accepted.