Integrates Sendblue HTTP API to send/receive iMessage, SMS, and RCS messages from server code. Handles text, media, group messages, effects, Tapback reactions, status callbacks, and inbound webhooks.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
不该用的边界:
风险提示:每一次外发、联系人/Webhook 变更、已读回执、反应、输入指示都是「改变状态」操作。先向用户预览收件人、发送线路、内容、回调/Webhook 变更,等明确确认后再发。
Base URL:https://api.sendblue.com。每个请求都需要两个请求头(外加 Content-Type: application/json):
sb-api-key-id: <YOUR_API_KEY_ID>
sb-api-secret-key: <YOUR_API_SECRET>
Content-Type: application/json
两个值必须留在服务端,绝不能下发到浏览器或移动端。
curl -X POST https://api.sendblue.com/api/send-message \
-H "sb-api-key-id: $KEY_ID" \
-H "sb-api-secret-key: $SECRET" \
-H 'Content-Type: application/json' \
-d '{
"number": "+15551234567",
"from_number": "+1YOUR_SENDBLUE_NUMBER",
"content": "Hello from the API!"
}'
+15551234567)。from_number 必须是你自己拥有的线路,用 GET /api/lines 列出。同步响应里有:
message_handle(Apple GUID)——务必持久化,反应、回复、关联状态回调都要用它。status:REGISTERED、PENDING、QUEUED、ACCEPTED、SENT、DELIVERED、DECLINED、ERROR。只有 DELIVERED 才代表真正送达。优先用 status_callback,而不是轮询 GET /api/status。
在 Dashboard 或通过 POST /api/account/webhooks 配置 Webhook URL。Sendblue 会向你的端点 POST JSON。尽快返回 2xx——非 2xx 会触发重试和重复投递。
事件类型:receive、outbound、typing_indicator、call_log、line_blocked、line_assigned、contact_created。
核心端点:
| Method | Path | 用途 |
|---|---|---|
| POST | /api/send-message | 发送 1:1 消息(文本和/或媒体) |
| POST | /api/send-group-message | 群发给多个收件人 |
| POST | /api/create-group | 创建命名群线程 |
| POST | /api/send-reaction | 发送 Tapback(love/like/dislike/laugh/emphasize/question) |
| POST | /api/send-typing-indicator | 在对方线程显示「正在输入…」 |
| POST | /api/mark-read | 发送已读回执 |
| POST | /api/upload-file / /api/upload-media-object | 上传媒体(直传或从 URL) |
| GET | /api/status | 轮询消息送达状态 |
| GET | /api/evaluate-service | 检查某号码是否在 iMessage 上 |
| GET | /api/v2/messages / /api/v2/messages/:id | 读取消息历史 |
| GET/POST/PUT/DELETE | /api/v2/contacts[...] | 管理联系人 |
| GET | /api/lines | 列出你的 Sendblue 号码 |
| POST | /api/account/webhooks | 增删改查 Webhook 订阅 |
POST /api/send-message
{
"number": "+15551234567",
"from_number": "+1YOUR_SENDBLUE_NUMBER",
"content": "Optional text",
"media_url": "https://example.com/img.jpg",
"send_style": "celebration",
"status_callback": "https://yourapp.com/sendblue/status"
}
content 和/或 media_url 至少有一个。send_style 仅 iMessage 生效(SMS 上静默忽略),合法值:celebration、shooting_star、fireworks、lasers、love、confetti、balloons、spotlight、echo、invisible、gentle、loud、slam。文本最长 18,996 字符;媒体 iMessage 最大 100 MB、SMS 最大 5 MB。
POST /api/send-group-message
{
"numbers": ["+15551234567", "+15557654321"],
"from_number": "+1YOUR_SENDBLUE_NUMBER",
"content": "Hey team"
}
响应返回 group_id——持久化它,后续往同一线程追加消息,避免每次新建群。
POST /api/send-reaction
{
"from_number": "+1YOUR_SENDBLUE_NUMBER",
"message_handle": "<上一次发送返回的 message_handle>",
"reaction": "love"
}
反应仅 iMessage 可用,且需要原消息的 message_handle。合法值:love、like、dislike、laugh、emphasize、question。
receive){
"accountEmail": "[email protected]",
"content": "Reply text",
"media_url": "https://...",
"is_outbound": false,
"number": "+15551234567",
"from_number": "+1YOUR_SENDBLUE_NUMBER",
"service": "iMessage",
"group_id": "...",
"date_sent": "2024-01-01T12:00:00Z"
}
状态回调载荷(outbound)镜像 send-message 响应,随消息从 SENT → DELIVERED(或 ERROR)更新。
最佳实践:
message_handle——反应、回复、关联状态回调都靠它。status_callback 取代轮询,更省成本也更准。message_handle 可能到达多次,端点需幂等)。/api/evaluate-service 检查对方服务类型。常见坑:
5551234567 或 (555) 123-4567 会失败,必须 +15551234567。from_number 必须是你的线路:伪造或未开通的号码会报错。send_style 在 SMS 上静默无效(绿色气泡收件人)。/api/send-message 返回 200 只代表「已接受」,不等于「已送达」。安全:
sb-api-key-id / sb-api-secret-key 是服务端凭据,不能出现在浏览器、移动端或 CI 日志里。/api/send-carousel)、FaceTime/联系人卡片分享、高级 Webhook 过滤、超出基础 CRUD 的联系人 API——见文档站。采编自 sickn33/antigravity-awesome-skills(MIT)。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/10-platform:sendblue-imessage-apifrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platform66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录Other plugins' skills for the same job