# Brevo plugin

The Brevo plugin lets a Vaubaan Gateway mission use Brevo without handing the agent a credential. Brevo email through its API v3: transactional emails held by who they go to, batches, contact lists and their contacts, and email campaigns drafted then sent. No SMS, no WhatsApp.

Version `0.1.0` · 11 permissions · 3 macro-actions · 14 tools · 0 gateways run this plugin (over the last 90 days).

## How Brevo is modelled

1 plane, 8 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

- **Account** — One account is one Brevo API key.
  - Plane `email` — Brevo email: sending domains, contact lists with their campaigns, contacts, sent emails.
    - `domain` (1 n; the resource; carries the environment (staging, dev)) — A sending domain, a mission resource labelled by its owner; its metadata holds the recipient zone lists.
      - `to-zone` (1 n) — Synthetic: the worst recipient zone of a send (internal \| allowlist \| external-unbounded).
      - `recipient-count` (1 n) — Synthetic: emitted by a batch send only; its one value is batch.
    - `list` (1 n; the resource; carries the environment (staging, dev)) — A contact list campaigns target, a mission resource labelled by its owner.
      - `member` (1 *) — Synthetic: a contact as a member of a list.
      - `campaign` (1 *) — An email campaign targeting a list; the verb leaf send separates sending from drafting.
    - `contact` (1 *) — A contact of the account: personal data.
    - `email` (1 *) — A sent transactional email and its delivery events.

Marks: 1 exactly one, named; n a finite, known set; * an unknown number, possibly all.

- **Account**: One account is one Brevo API key.
- **Resource**: Its resources are its sending domains and its contact lists, labelled by the owner. A send is held by its worst recipient against the zone lists the owner sets on the sending domain; a batch and a campaign send each need their own permission, and an email to any address leaves only from a staging or dev domain.
- **Environment**: The environment is the label the owner of the account puts on each resource. A permission tied to an environment is held once per label, and is refused on a resource that has no label or a label the permission does not list. Known: `staging`, `dev`. Carried by: `email.domain`, `email.list`.

## What an agent does at Brevo: 3 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

1. **Check emails and campaigns** — Read delivery events, sending domains, lists with their contacts, and campaigns. Checking that an email arrived, which domains send and how their recipients are zoned, who is on a list, how a campaign did. Nothing is sent; events and lists hold the recipients' personal data. (4 permissions)
2. **Send emails** — Send transactional emails and batches, by who they go to. Sending a transactional email from a mission domain. Each send is held by its worst recipient: internal, allow-listed, or anyone; a batch multiplies one decision by up to a hundred. A sent email cannot be recalled. (4 permissions)
3. **Run campaigns** — Manage contacts and list membership, draft campaigns, send them. Preparing a newsletter: adding contacts to the list, drafting the campaign, then sending it to everyone on the list at once. Contacts are personal data, and a sent campaign cannot be recalled. (3 permissions)

## The map

11 permissions of 3 macro-actions, in the four rows of the tree. For the chosen trust level and environment, each cell gives yes, ask me or no, and the quota a day.

Careful ×1: Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out. Trusting ×3: Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3. Autonomous ×10: Everything but irreversible actions runs freely; those ask first. Limits ×10.

yes: runs freely; ask me: ask me first; no: not included. A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

### Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

- Send emails: Send an email to any address `brevo.send-email-external-unbounded`, irreversible — At least one recipient is on no list: anything the agent read can leave to anyone, irreversibly. Acceptable only from a staging or dev domain.
  - On dev: Careful: no · Trusting: ask me · 60 a day · Autonomous: ask me · 200 a day.
  - On staging: Careful: no · Trusting: ask me · 60 a day · Autonomous: ask me · 200 a day.
- Send emails: Send a batch of up to 100 emails `brevo.send-batch`, irreversible — One decision becomes up to 100 emails, each to its own recipients; touched together with the zone of the worst recipient. Careful: no · Trusting: ask me · 15 a day · Autonomous: ask me · 50 a day.
- Run campaigns: Send a campaign to its list `brevo.campaign-send`, irreversible — Every contact of the list receives it at once; nothing recalls it, and the sends count against the account's plan. Careful: no · Trusting: ask me · 6 a day · Autonomous: ask me · 20 a day.

### Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

- Send emails: Send an email to internal recipients `brevo.send-email-internal`, costly to undo — Every recipient's domain is in the sending domain's internal\_domains; an email cannot be recalled once sent. Careful: ask me · 100 a day · Trusting: ask me · 300 a day · Autonomous: yes · 1,000 a day.
- Send emails: Send an email to allow-listed recipients `brevo.send-email-allowlist`, costly to undo — Every recipient is internal or on the sending domain's allow-lists; at least one is outside the company. Careful: ask me · 50 a day · Trusting: ask me · 150 a day · Autonomous: yes · 500 a day.
- Run campaigns: Create contacts and change list membership `brevo.contact-write`, costly to undo — Contacts are personal data; adding someone to a list makes them a recipient of every campaign sent to it. Careful: ask me · 200 a day · Trusting: ask me · 600 a day · Autonomous: yes · 2,000 a day.

### Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

- Check emails and campaigns: Read delivery events of sent emails `brevo.read-email-events`, personal data — Events name each recipient's address and what happened to the email (delivered, opened, bounced): personal data of the account's recipients. Careful: ask me · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Check emails and campaigns: Read contact lists and their contacts `brevo.read-lists`, personal data — A list's contacts are personal data: addresses, names and attributes. Careful: ask me · 200 a day · Trusting: yes · 600 a day · Autonomous: yes · 2,000 a day.

### Harmless

Runs freely at every level.

- Check emails and campaigns: Read sending domains and their recipient zones `brevo.read-domains` — Domain names, their authentication status and the zone lists the owner set. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Check emails and campaigns: Read campaigns and their statistics `brevo.read-campaigns` — Campaign content, status and aggregate statistics; no contact data. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Run campaigns: Draft a campaign `brevo.campaign-draft` — A draft targeting one list; nothing is sent until the campaign is sent. Careful: yes · 20 a day · Trusting: yes · 60 a day · Autonomous: yes · 200 a day.

Careful on dev: runs freely 3, ask me first 5, not included 3.
Careful on staging: runs freely 3, ask me first 5, not included 3.
Trusting on dev: runs freely 5, ask me first 6.
Trusting on staging: runs freely 5, ask me first 6.
Autonomous on dev: runs freely 8, ask me first 3.
Autonomous on staging: runs freely 8, ask me first 3.

Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

Held once per environment: Send an email to any address.

## A few calls, classified by the plugin

17 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. [The 17 calls, as code](https://github.com/vaubaan/gateway/blob/main/plugins/brevo/src/examples.ts).

- `brevo__list_domains {}`
  - the plugin sees: `brevo.domain[*].R`
  - the catalog answers: Read sending domains and their recipient zones `brevo.read-domains`
  - a Careful mission: yes
- `brevo__send_email {"sender":{"email":"news@mail.acme.com","name":"Acme"},"to":[{"email":"bob@acme.com"}],"subject":"Hello","htmlContent":"<p>Hello</p>"}`
  - the plugin sees: `brevo.domain[mail.acme.com].to-zone[internal].W`
  - the catalog answers: Send an email to internal recipients `brevo.send-email-internal`
  - a Careful mission: ask me
- `brevo__create_contact {"email":"new@client.example","list_ids":[12]}`
  - the plugin sees: `brevo.contact.W`, `brevo.list[12].member[*].W`
  - the catalog answers: Create contacts and change list membership `brevo.contact-write`
  - a Careful mission: ask me
- `brevo__send_email {"sender":{"email":"qa@staging.acme.com"},"to":[{"email":"x@anyone.example"}],"subject":"Hello","htmlContent":"<p>Hello</p>"}`
  - the plugin sees: `brevo.domain[staging.acme.com].to-zone[external-unbounded].W`
  - the catalog answers: Send an email to any address `brevo.send-email-external-unbounded`
  - a Careful mission: no

## Anything else

A call no permission covers touches `brevo.uncategorized-write` instead of slipping through. No macro-action holds it; a person ticks it knowingly.

| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
| --- | --- | --- | --- | --- |
| Uncategorized write `brevo.uncategorized-write`: Catch-all for writes without a dedicated entry. No tool of this plugin reaches it; seeing it means an entry is missing. | Repairable, at a price (costly to undo) | ask me · 50 a day | ask me · 150 a day | yes · 500 a day |

## Tools

14 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

| Tool | What it does | Usually touches |
| --- | --- | --- |
| `brevo__list_domains` | List sending domains | `brevo.read-domains` |
| `brevo__describe_zones` | Describe recipient zones | `brevo.read-domains` |
| `brevo__send_email` | Send an email | `brevo.send-email-internal`, `brevo.send-email-allowlist`, `brevo.send-email-external-unbounded` |
| `brevo__send_batch_email` | Send a batch of emails | `brevo.send-email-internal`, `brevo.send-batch` |
| `brevo__get_email_events` | Read email events | `brevo.read-email-events` |
| `brevo__list_lists` | List contact lists | `brevo.read-lists` |
| `brevo__get_list_contacts` | Read a list's contacts | `brevo.read-lists` |
| `brevo__create_contact` | Create a contact | `brevo.contact-write` |
| `brevo__add_contacts_to_list` | Add contacts to a list | `brevo.contact-write` |
| `brevo__remove_contacts_from_list` | Remove contacts from a list | `brevo.contact-write` |
| `brevo__list_campaigns` | List campaigns | `brevo.read-campaigns` |
| `brevo__get_campaign` | Read a campaign | `brevo.read-campaigns` |
| `brevo__create_campaign` | Draft a campaign | `brevo.campaign-draft` |
| `brevo__send_campaign` | Send a campaign | `brevo.campaign-send` |

## Connecting an account

**1 of 3 · a key you create and paste** — `API key`

An API key the person creates at Brevo and pastes once; nobody declares anything beforehand.

**Account** — A v3 API key of the account. A Brevo API key reaches the whole account; this gateway holds each send by who it goes to, and each campaign behind its own permission.

1. Sign in to Brevo as a user of the account that owns the sending domains.
2. **SMTP & API › API Keys › Generate a new API key** — Open the API keys page and start a new key, leaving the MCP server option off. ([open](https://app.brevo.com/settings/keys/api))
3. Name the key, generate it, copy it, and paste it here. Brevo shows it once.

| Permission at Brevo | Access |
| --- | --- |
| API key | read-write |

Where: [https://app.brevo.com/settings/keys/api](https://app.brevo.com/settings/keys/api)

Expiry: Brevo API keys do not expire: delete the key on the API Keys page to end this account.

The connect page asks: API key (secret).

The service's documentation: [https://developers.brevo.com/docs/getting-started](https://developers.brevo.com/docs/getting-started)

Disconnecting: In Brevo, open SMTP & API, then API Keys, and delete the key this gateway was given.

## Health

0 gateways run this plugin (over the last 90 days).

No version of this plugin has reported a call or a gateway yet.

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly ([what they mean](/plugins/health)). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

## Links

- [Connect a Brevo account](/plugins/brevo#connect)
- [How Brevo is modelled](https://github.com/vaubaan/gateway/blob/main/docs/handbook/services/brevo.md)
- [The catalog, as code](https://github.com/vaubaan/gateway/blob/main/plugins/brevo/src/risk-catalog.yaml)
- [The plugin source](https://github.com/vaubaan/gateway/tree/main/plugins/brevo)
- The page: [/plugins/brevo](/plugins/brevo)
