This endpoint allows you to send a simple message POST method. You’ll also need to authenticate your request with the Basic Auth of your SMS credentials.
Request Parameters
Parameter
Type
Requirement
Description
From
String
Mandatory
SenderId or Name recipients see
To
String
Mandatory
Mobile number of recipient.
Content
String
Mandatory
Content of the simple message
Sample HTTP Request
POST /v1/messages/send HTTP/1.1
Host: sms.hubtel.com
Content-Type: application/json
Authorization: Basic cW9vaHF2Y3A6c2dyb3Juam=
{
"From": "AbrantieLai",
"To": "233554123419",
"Content": " The Job is the JOB"
}
curl --location 'https://sms.hubtel.com/v1/messages/send' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ZGJyZibWc6bm5oY3B6cnc=' \
--data '{
"From":"AbrantieLai",
"To": "233554123419",
"Content": "The Job is the JOB"
}'