DDocumentation

Authentication

Show readers how to authenticate against your API. This example uses a bearer token; adapt it to your scheme. All requests must include your API key in the Aut…

  • 1 min read
  • Updated Aug 20, 2026

Show readers how to authenticate against your API. This example uses a bearer token; adapt it to your scheme.

All requests must include your API key in the Authorization header:

cURL
bash
curl https://api.example.com/v1/widgets \
  -H "Authorization: Bearer $ACME_API_KEY"

Never ship API keys in client-side code. Call your API from a server and keep keys in environment variables.

Was this page helpful?