brevo
Brevo (formerly Sendinblue) email marketing API for managing contacts, lists, sending transactional emails, and campaigns. Use when importing contacts, sending emails, managing subscriptions, or working with email automation.
Install
mkdir -p .claude/skills/brevo && curl -L -o skill.zip "https://mcp.directory/api/skills/download/1362" && unzip -o skill.zip -d .claude/skills/brevo && rm skill.zipInstalls to .claude/skills/brevo
About this skill
Brevo Email Marketing API
Manage contacts, send emails, and automate marketing via Brevo's REST API.
Authentication
BREVO_KEY=$(cat ~/.config/brevo/api_key)
All requests require header: api-key: $BREVO_KEY
Base URL
https://api.brevo.com/v3
Common Endpoints
Contacts
| Action | Method | Endpoint |
|---|---|---|
| Create contact | POST | /contacts |
| Get contact | GET | /contacts/{email} |
| Update contact | PUT | /contacts/{email} |
| Delete contact | DELETE | /contacts/{email} |
| List contacts | GET | /contacts?limit=50&offset=0 |
| Get blacklisted | GET | /contacts?emailBlacklisted=true |
Lists
| Action | Method | Endpoint |
|---|---|---|
| Get all lists | GET | /contacts/lists |
| Create list | POST | /contacts/lists |
| Get list contacts | GET | /contacts/lists/{listId}/contacts |
| Add to list | POST | /contacts/lists/{listId}/contacts/add |
| Remove from list | POST | /contacts/lists/{listId}/contacts/remove |
Emails
| Action | Method | Endpoint |
|---|---|---|
| Send transactional | POST | /smtp/email |
| Send campaign | POST | /emailCampaigns |
| Get templates | GET | /smtp/templates |
Examples
Create/Update Contact
curl -X POST "https://api.brevo.com/v3/contacts" \
-H "api-key: $BREVO_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"listIds": [10],
"updateEnabled": true,
"attributes": {
"NOMBRE": "John",
"APELLIDOS": "Doe"
}
}'
Get Contact Info
curl "https://api.brevo.com/v3/contacts/[email protected]" \
-H "api-key: $BREVO_KEY"
Update Contact Attributes
curl -X PUT "https://api.brevo.com/v3/contacts/[email protected]" \
-H "api-key: $BREVO_KEY" \
-H "Content-Type: application/json" \
-d '{
"listIds": [10, 15],
"attributes": {
"CUSTOM_FIELD": "value"
}
}'
Send Transactional Email
curl -X POST "https://api.brevo.com/v3/smtp/email" \
-H "api-key: $BREVO_KEY" \
-H "Content-Type: application/json" \
-d '{
"sender": {"name": "My App", "email": "[email protected]"},
"to": [{"email": "[email protected]", "name": "John"}],
"subject": "Welcome!",
"htmlContent": "<p>Hello {{params.name}}</p>",
"params": {"name": "John"}
}'
Send with Template
curl -X POST "https://api.brevo.com/v3/smtp/email" \
-H "api-key: $BREVO_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": [{"email": "[email protected]"}],
"templateId": 34,
"params": {
"NOMBRE": "John",
"FECHA": "2026-02-01"
}
}'
List All Contact Lists
curl "https://api.brevo.com/v3/contacts/lists?limit=50" \
-H "api-key: $BREVO_KEY"
Add Contacts to List (Bulk)
curl -X POST "https://api.brevo.com/v3/contacts/lists/10/contacts/add" \
-H "api-key: $BREVO_KEY" \
-H "Content-Type: application/json" \
-d '{
"emails": ["[email protected]", "[email protected]"]
}'
Safe Import Pattern
When importing contacts, always respect unsubscribes:
import requests
BREVO_KEY = "your-api-key"
HEADERS = {'api-key': BREVO_KEY, 'Content-Type': 'application/json'}
BASE = 'https://api.brevo.com/v3'
def get_blacklisted():
"""Get all unsubscribed/blacklisted emails"""
blacklisted = set()
offset = 0
while True:
r = requests.get(
f'{BASE}/contacts?limit=100&offset={offset}&emailBlacklisted=true',
headers=HEADERS
)
contacts = r.json().get('contacts', [])
if not contacts:
break
for c in contacts:
blacklisted.add(c['email'].lower())
offset += 100
return blacklisted
def safe_import(emails, list_id):
"""Import contacts respecting unsubscribes"""
blacklisted = get_blacklisted()
for email in emails:
if email.lower() in blacklisted:
print(f"Skipped (unsubscribed): {email}")
continue
r = requests.post(f'{BASE}/contacts', headers=HEADERS, json={
'email': email,
'listIds': [list_id],
'updateEnabled': True
})
if r.status_code in [200, 201, 204]:
print(f"Imported: {email}")
else:
print(f"Error: {email} - {r.text[:50]}")
Contact Attributes
Brevo uses custom attributes for contact data:
{
"attributes": {
"NOMBRE": "John",
"APELLIDOS": "Doe",
"FECHA_ALTA": "2026-01-15",
"PLAN": "premium",
"CUSTOM_FIELD": "any value"
}
}
Create attributes in Brevo dashboard: Contacts → Settings → Contact attributes.
Response Codes
| Code | Meaning |
|---|---|
| 200 | Success (GET) |
| 201 | Created (POST) |
| 204 | Success, no content (PUT/DELETE) |
| 400 | Bad request (check payload) |
| 401 | Invalid API key |
| 404 | Contact/resource not found |
Best Practices
- Always check blacklist before importing contacts
- Use
updateEnabled: trueto update existing contacts instead of failing - Use templates for consistent transactional emails
- Batch operations when adding many contacts to lists
- Store list IDs in config, not hardcoded
- Log imports for audit trail
Automations
Brevo automations trigger on:
- Contact added to list
- Contact attribute updated
- Email opened/clicked
- Custom events via API
Trigger automation manually:
curl -X POST "https://api.brevo.com/v3/contacts/import" \
-H "api-key: $BREVO_KEY" \
-H "Content-Type: application/json" \
-d '{
"listIds": [10],
"emailBlacklist": false,
"updateExistingContacts": true,
"emptyContactsAttributes": false,
"jsonBody": [
{"email": "[email protected]", "attributes": {"NOMBRE": "John"}}
]
}'
Useful Queries
# Count contacts in list
curl "https://api.brevo.com/v3/contacts/lists/10" -H "api-key: $BREVO_KEY" | jq '.totalSubscribers'
# Get recent contacts
curl "https://api.brevo.com/v3/contacts?limit=10&sort=desc" -H "api-key: $BREVO_KEY"
# Check if email exists
curl "https://api.brevo.com/v3/contacts/[email protected]" -H "api-key: $BREVO_KEY"
# Get account info
curl "https://api.brevo.com/v3/account" -H "api-key: $BREVO_KEY"
More by openclaw
View all skills by openclaw →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversSimplify email marketing and automation with Migadu's API integration for bulk mailbox, alias, and autoresponder managem
Integrate Mailchimp for read-only access to campaign analytics, automation, lists, and e-commerce for email marketing op
Integrate Sidemail for automated email marketing, seamless customer communications, and workflow-driven email marketing
Comprehensive SendGrid MCP server with 59 tools covering email marketing, transactional email, template management, cont
Comprehensive Klaviyo MCP server. Manage profiles, lists, segments, campaigns, flows, and analytics for ecommerce email
Mailmodo — an email marketing platform offering AMP email and interactive email to boost conversions with powerful email
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.