Skip to content
Get Started
API v2

API v2 Overview

RESTful API for messaging, contacts, and account management

The Sendblue API v2 provides a RESTful interface for iMessage, SMS, and RCS messaging.

FeatureDescription
MessagesQuery, filter, and delete messages
Media UploadUpload images, video, and files
ReactionsSend tapback reactions (love, like, dislike, laugh, emphasize, question)
Read ReceiptsMark messages as read
Typing IndicatorsShow typing status in conversations
RCS MessagingRich Communication Services for Android
ContactsFull CRUD API for contact management
Contact SharingConfigure Name & Photo Sharing profiles
Line ProvisioningRequest new phone/email lines

See also: FaceTime API (requires FaceTime line)

https://api.sendblue.co

All endpoints require API key headers:

sb-api-key-id: YOUR_API_KEY
sb-api-secret-key: YOUR_API_SECRET
MethodEndpointDescription
POST/api/send-messageSend a message
POST/api/send-group-messageSend group message
POST/api/create-groupCreate group chat
GET/api/statusGet message status
GET/api/evaluate-serviceCheck recipient service type
MethodEndpointDescription
GET/api/v2/messagesList messages with filters
GET/api/v2/messages/:idGet single message
DELETE/api/message/:handleDelete message from database
MethodEndpointDescription
POST/api/send-reactionSend tapback reaction
POST/api/mark-readSend read receipt
POST/api/send-typing-indicatorSend typing indicator
MethodEndpointDescription
POST/api/upload-fileDirect file upload
POST/api/upload-media-objectUpload from URL
MethodEndpointDescription
GET/api/v2/contactsList contacts
GET/api/v2/contacts/countGet contact count
GET/api/v2/contacts/:phoneGet contact
POST/api/v2/contactsCreate contact
POST/api/v2/contacts/bulkBulk create contacts
PUT/api/v2/contacts/:phoneUpdate contact
DELETE/api/v2/contacts/:phoneDelete contact
DELETE/api/v2/contactsBulk delete contacts
MethodEndpointDescription
GET/api/account/webhooksList webhooks
POST/api/account/webhooksAdd webhooks
PUT/api/account/webhooksReplace all webhooks
DELETE/api/account/webhooksDelete webhooks
MethodEndpointDescription
GET/api/linesList assigned phone numbers

Success:

{
"status": "OK",
"message": "Success message",
"data": { ... }
}

Error:

{
"status": "ERROR",
"error_code": "ERROR_CODE",
"message": "Error description"
}
ServiceDescription
iMessageApple messaging
SMSStandard text
RCSRich messaging (Android)
StatusDescription
QUEUEDWaiting to send
PENDINGBeing processed
SENTSent to carrier
DELIVEREDDelivered to device
ERRORDelivery failed
DECLINEDMessage rejected
RECEIVEDInbound message
ACCEPTEDAccepted for processing
REGISTEREDRegistered in system