Send SMS

View as Markdown

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects a JSON payload / object.

phonestringRequired

MPESA hashed phone (e.g. 8556a495c390f3ba95d2bdf6d06436f2fd09f516531f0a7cd9591c60812fa46d) or standard international format (e.g. +254722000000)

textstringRequired
The SMS message content
senderintegerRequired
The numeric sender ID assigned to your account

Response

OK
successboolean
messagestring
dataobject

Errors

406
Not Acceptable Error