Loading...
Loading...
Send and receive iMessage, SMS, and RCS from application code via the Sendblue HTTP API — text, media, group messages, send styles, reactions, typing indicators, status callbacks, and inbound webhooks.
npx skill4agent add sendblue-api/skills sendblue-apihttps://api.sendblue.comsb-api-key-id: <YOUR_API_KEY_ID>
sb-api-secret-key: <YOUR_API_SECRET>
Content-Type: application/jsoncurl -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!"
}'from_numberGET /api/linesmessage_handlestatusREGISTEREDPENDINGQUEUEDACCEPTEDSENTDELIVEREDDECLINEDERRORDELIVEREDstatus_callback/api/statusPOST /api/account/webhooksreceiveoutboundtyping_indicatorcall_logline_blockedline_assignedcontact_created| Method | Path | Purpose |
|---|---|---|
| POST | | Send a 1:1 message (text and/or media) |
| POST | | Send to multiple recipients |
| POST | | Create a named group thread |
| POST | | Send a tapback (love/like/dislike/laugh/emphasize/question) |
| POST | | Show "typing…" in the recipient's thread |
| POST | | Send a read receipt |
| POST | | Upload media (direct or from URL) |
| GET | | Poll a message's delivery status |
| GET | | Check whether a number is on iMessage |
| GET | | Read message history |
| GET / POST / PUT / DELETE | | Manage contacts |
| GET | | List your Sendblue phone numbers |
| POST | | CRUD webhook subscriptions |
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"
}contentmedia_urlsend_stylecelebrationshooting_starfireworkslasersloveconfettiballoonsspotlightechoinvisiblegentleloudslamPOST /api/send-group-message
{
"numbers": ["+15551234567", "+15557654321"],
"from_number": "+1YOUR_SENDBLUE_NUMBER",
"content": "Hey team"
}group_idPOST /api/send-reaction
{
"from_number": "+1YOUR_SENDBLUE_NUMBER",
"message_handle": "<message_handle from prior send>",
"reaction": "love"
}message_handlelovelikedislikelaughemphasizequestionreceive{
"accountEmail": "you@example.com",
"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"
}outboundSENTDELIVEREDERRORmessage_handlestatus_callbackGET /api/status/api/evaluate-servicesb-api-key-idsb-api-secret-key/api/send-messagestatus_callbackGET /api/statussend_stylesb-api-key-idsb-api-secret-keymessage_handle5551234567(555) 123-4567+15551234567from_numbersend_style/api/evaluate-servicemessage_handle/api/send-messagestatus_callback@sendblue-cli@sendblue-notify/api/send-carousel