Skip to main content

Messaging API

SendLime's Messaging API v2 enables you to send SMS and WhatsApp messages using our REST API.

  • Programmatically send high volumes of SMS and WhatsApp messages.
  • Send messages with low latency and high delivery rates.
  • Scale your applications with familiar web technologies.
  • Pay only for what you use, nothing more.

Channels

ChannelEndpointDescription
SMSPOST /api/v2/messagesSend text messages via SMS
WhatsAppPOST /api/v2/messagesSend messages via WhatsApp

Both channels use the same endpoint โ€” specify "channel": "sms" or "channel": "whatsapp" in the request body.

Channel behavior

ChannelSender/profile behaviorCredits
SMSPass brand_id to use an approved masking or non-masking sender. If omitted, SendLime uses the default non-masking sender.0.5 BDT per delivered message
WhatsAppPass brand_id only when you want to use a specific approved WhatsApp profile. If omitted, SendLime uses your default WhatsApp profile.Currently 0 credits

Quick Example

curl -X POST https://api.sendlime.com/api/v2/messages \
-H "Authorization: Bearer sl_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "8801XXXXXXXXX",
"message": "Hello from SendLime!",
"channel": "sms"
}'

Contents

  • Code Snippets โ€” Ready-to-use examples in cURL, Node.js, and Python
  • Guides โ€” Number formatting, sender identity, WhatsApp, troubleshooting
  • API Reference โ€” Full endpoint documentation

Concepts

Before using the SendLime API, familiarize yourself with the following: