Authentication schemes
Choose between API key and OAuth 2.0 authentication for the Brevo API
API key authentication
Use API key authentication for direct API access. Include your API key in the api-key header for each request.
Best for:
- Direct API integrations
- Server-to-server communication
- Testing and development
See API Key authentication for setup instructions.
OAuth 2.0 authentication
Use OAuth 2.0 when your application needs to act on behalf of a Brevo user, or when your backend needs a scoped, short-lived credential instead of a static API key. Create and manage OAuth apps with the Brevo CLI: private apps work instantly, and public apps, which any Brevo account can authorize, go through a review by Brevo first.
Best for:
- Apps acting on behalf of a user
- Server-to-server integrations, via machine-to-machine (M2M)
- Private integrations within an organisation
- Public integrations that any Brevo account can connect, after review (Private and public apps)
See OAuth 2.0 to get started.