Brevo(以前称为 Sendinblue)电子邮件营销 API,用于管理联系人、列表、发送交易电子邮件和营销活动。在导入联系人、发送电子邮件、管理订阅或使用电子邮件自动化时使用。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install brevo或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install brevo⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/brevo/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: brevo version: 1.0.0 description: 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. ---
Manage contacts, send emails, and automate marketing via Brevo's REST API.
BREVO_KEY=$(cat ~/.config/brevo/api_key)
All requests require header: api-key: $BREVO_KEY
https://api.brevo.com/v3
| 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 |
| 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 |
| Action | Method | Endpoint | |--------|--------|----------| | Send transactional | POST | /smtp/email | | Send campaign | POST | /emailCampaigns | | Get templates | GET | /smtp/templates |
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"
}
}'
curl "https://api.brevo.com/v3/contacts/[email protected]" \
-H "api-key: $BREVO_KEY"
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"
}
}'
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"}
}'
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"
}
}'
curl "https://api.brevo.com/v3/contacts/lists?limit=50" \
-H "api-key: $BREVO_KEY"
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]"]
}'
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]}")
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.
| 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 |
updateEnabled: true to update existing contacts instead of failingBrevo automations trigger on:
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"}}
]
}'
# 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"安装 布雷沃 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/brevo/ 目录(个人级,所有项目可用),或 .claude/skills/brevo/(项目级)。重启 AI 客户端后,用 /brevo 主动调用,或让 AI 根据上下文自动发现并使用。
布雷沃 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
布雷沃 可免费安装使用。请查阅仓库了解许可证信息。
Brevo(以前称为 Sendinblue)电子邮件营销 API,用于管理联系人、列表、发送交易电子邮件和营销活动。在导入联系人、发送电子邮件、管理订阅或使用电子邮件自动化时使用。
布雷沃 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。