How to Send SMS
How to Send a Single SMS

How to Send a Single SMS

You can send a single SMS to one or many recipients by making a HTTP POST request with the following:



Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Sample Request Body

	"source": "sms_leopard",
	"message": "Hello from SMSLeopard API",
	"destination": [
			"number": "07000000001"
	"status_url": "",
	"status_secret": ""

Code Examples

curl -u API_KEY:API_SECRET -H "Content-Type: application/json" -X POST -d '{"source": "SMSLeopard", "message": "Hello from SMSLeopard API", "destination": [{"number": "+254710000001"}, {"number": "+254710000002"}], "status_url": "https://your-status.url", "status_secret": "supersecret"}'


  • source - A Sender ID of your smsleopard business account. If you have not yet been assigned any, use SMS_Leopard for testing purposes. Click here (opens in a new tab) to learn more.
  • message - The SMS you intend to send to the recipient.
  • destination - An array of recipient objects with the numbers you intend to send the message to.
  • destination → number - The specific recipient phone number you intend to send SMS to.
  • status_url - A callback URL to receive delivery reports on (optional).
  • status_secret - A secret value that you provide, only to be shared between you and us that you will use to verify updates sent from us (required when status_url is provided).
Example of a Successful Response

Status code: 201

	"success": true,
	"message": "Sent to 1/1. Cost KES 0.90",
	"recipients": [
			"id": "eb4647b2-2695-4aba-958e-0b39d965f6d0",
			"cost": 0.9,
			"number": "+254700000001",
			"status": "queued"