marketing
Brevo CLI for CI
Use the Brevo CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write API key auth
Brevo CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. The Brevo CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Brevo CLI for CI
kosmokrator integrations:configure brevo --set api_key="$BREVO_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call brevo.brevo_list_contacts '{"limit":1,"offset":1,"search":"example_search"}' --json Discovery Before Execution
Agents and scripts can inspect Brevo docs and schemas before choosing a function.
kosmo integrations:docs brevo --json
kosmo integrations:docs brevo.brevo_list_contacts --json
kosmo integrations:schema brevo.brevo_list_contacts --json
kosmo integrations:search "Brevo" --json
kosmo integrations:list --json Useful Brevo CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
brevo.brevo_list_contacts | Read | limit, offset, search | List contacts in your Brevo account. Supports pagination and filtering by email or search term. |
brevo.brevo_get_contact | Read | Get details of a specific contact in Brevo by their email address. Returns contact attributes, list memberships, and creation date. | |
brevo.brevo_create_contact | Write | email, attributes, listIds | Create a new contact in Brevo. You can set attributes like first name and last name, and add the contact to one or more lists. |
brevo.brevo_list_lists | Read | limit, offset | List all contact lists in your Brevo account. Supports pagination with limit and offset. |
brevo.brevo_get_list | Read | id | Get details of a specific contact list in Brevo by its ID. Returns the list name, total subscribers, and other metadata. |
brevo.brevo_send_email | Write | sender, to, subject, htmlContent, textContent | Send a transactional email via Brevo. Specify sender, recipients, subject, and HTML or text content. |
brevo.brevo_get_account | Read | none | Get information about the connected Brevo account, including email, plan details, and account statistics. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.