Skip to main content

Authentication

Avenue uses API key authentication. Every non-auth request must include your API key in the x-api-key header.

API Key types

Both keys are generated automatically when you verify your email. Access them in Settings → API Keys.

Making authenticated requests

Never expose your live API key in client-side code, mobile apps, or public repositories. Use environment variables and server-side requests only.

Generating a new API key

You can rotate your API key at any time from Settings → API Keys. The old key is immediately invalidated.

Error responses

If your API key is missing or invalid, Avenue returns:
HTTP status: 401 Unauthorized