The Sendblue API v2 provides a RESTful interface for iMessage, SMS, and RCS messaging.
See also: FaceTime API (requires FaceTime line)
All endpoints require API key headers:
sb-api-key-id: YOUR_API_KEY
sb-api-secret-key: YOUR_API_SECRET
| Method | Endpoint | Description |
|---|
POST | /api/send-message | Send a message |
POST | /api/send-group-message | Send group message |
POST | /api/create-group | Create group chat |
GET | /api/status | Get message status |
GET | /api/evaluate-service | Check recipient service type |
| Method | Endpoint | Description |
|---|
GET | /api/v2/messages | List messages with filters |
GET | /api/v2/messages/:id | Get single message |
DELETE | /api/message/:handle | Delete message from database |
| Method | Endpoint | Description |
|---|
POST | /api/send-reaction | Send tapback reaction |
POST | /api/mark-read | Send read receipt |
POST | /api/send-typing-indicator | Send typing indicator |
| Method | Endpoint | Description |
|---|
POST | /api/upload-file | Direct file upload |
POST | /api/upload-media-object | Upload from URL |
| Method | Endpoint | Description |
|---|
GET | /api/v2/contacts | List contacts |
GET | /api/v2/contacts/count | Get contact count |
GET | /api/v2/contacts/:phone | Get contact |
POST | /api/v2/contacts | Create contact |
POST | /api/v2/contacts/bulk | Bulk create contacts |
PUT | /api/v2/contacts/:phone | Update contact |
DELETE | /api/v2/contacts/:phone | Delete contact |
DELETE | /api/v2/contacts | Bulk delete contacts |
| Method | Endpoint | Description |
|---|
GET | /api/account/webhooks | List webhooks |
POST | /api/account/webhooks | Add webhooks |
PUT | /api/account/webhooks | Replace all webhooks |
DELETE | /api/account/webhooks | Delete webhooks |
| Method | Endpoint | Description |
|---|
GET | /api/lines | List assigned phone numbers |
Success:
"message": "Success message",
Error:
"error_code": "ERROR_CODE",
"message": "Error description"
| Service | Description |
|---|
iMessage | Apple messaging |
SMS | Standard text |
RCS | Rich messaging (Android) |
| Status | Description |
|---|
QUEUED | Waiting to send |
PENDING | Being processed |
SENT | Sent to carrier |
DELIVERED | Delivered to device |
ERROR | Delivery failed |
DECLINED | Message rejected |
RECEIVED | Inbound message |
ACCEPTED | Accepted for processing |
REGISTERED | Registered in system |