Overview
Send a single SMS message to a specific phone number. This is the most basic SMS sending functionality.Endpoint
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | ✅ | The SMS message content to send |
sender | string | ✅ | The sender ID (up to 11 characters) |
payment_type | string | ✅ | Payment method: wallet or subscription |
receiver | string | ✅ | The recipient’s phone number in international format |
Parameter Details
message
message
The text content of your SMS message.
- Maximum length: 160 characters for single SMS, 1530 characters for concatenated SMS
- Encoding: UTF-8 supported for international characters
- Special characters: Emojis and special characters count as multiple characters
sender
sender
The sender ID that will appear on the recipient’s device.
- Length: Maximum 11 characters
- Format: Alphanumeric characters only
- Examples:
Lamah,MyCompany,Alert123
payment_type
payment_type
Specifies how the SMS cost will be charged.
wallet: Deduct from your account balancesubscription: Use your subscription plan credits
receiver
receiver
The recipient’s phone number in international format.
- Format: Must include country code (e.g.,
00218912345678) - Validation: Number will be validated before sending
- Examples:
00218913456789,00218923456789,00218943456789
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
message_id | string | Unique identifier for the sent message |
cost | number | Number of SMS parts charged for this send |
Error Responses
400 Bad Request
401 Unauthorized
Message Status Tracking
After sending a message, you can track its delivery status using the Get Message endpoint with the returnedmessage_id.
Possible status values:
sent: Message has been sent to the carrierdelivered: Message has been delivered to the recipientfailed: Message delivery failedpending: Message is being processed