Send email from Firebase
Call the Brevo API from server-side Firebase code with your API key kept as a secret, then confirm delivery in the Brevo email logs.

Ask your AI agent
Use AI assistants to interact with your Brevo account using natural language.
Before I send email from my Firebase app, check that I have a verified sender and an authenticated sending domain. List what is missing.
Read-only: it reads your Brevo account through the Brevo MCP server and changes nothing.
Set it up
API key
Create an API key with Restricted access and set None, Read, Read/write or All per resource. Store it as a secret in your backend and call Brevo from server-side code, never from client code.
SDK or REST
Use the Node.js SDK (a BrevoClient with your API key, then sendTransacEmail) or POST /v3/smtp/email. htmlContent is required unless you pass a templateId. Configure your sending domain and sender before sending emails.
Await the call and check the log
Await the request so your function does not return early. Confirm delivery in Brevo > Transactional > Email logs.



How it works
One POST to /v3/smtp/email sends a transactional email from server-side code you control. Use the Node.js SDK, or send the same request with cURL.Store the API key as a secret in your backend, never in client code.
htmlContent is required when templateId is not provided.
Configure your sending domain and sender before sending emails.
npm install @getbrevo/brevo
import { BrevoClient } from '@getbrevo/brevo';
const brevo = new BrevoClient({ apiKey: 'your-api-key' });
const result = await brevo.transactionalEmails.sendTransacEmail({
subject: 'Hello from Brevo!',
htmlContent: '<html><body><p>Hello,</p><p>This is my first transactional email.</p></body></html>',
sender: { name: 'Alex from Brevo', email: '[email protected]' },
to: [{ email: '[email protected]', name: 'John Doe' }],
});
console.log('Email sent. Message ID:', result.messageId);
curl --request POST \
--url https://api.brevo.com/v3/smtp/email \
--header 'accept: application/json' \
--header 'api-key:YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"sender":{
"name":"Alex from Brevo",
"email":"[email protected]"
},
"to":[
{
"email":"[email protected]",
"name":"John Doe"
}
],
"subject":"Hello from Brevo!",
"textContent":"Hello. This is my first transactional email sent from Brevo."
}'
Replace the API key, sender and recipient with your own.