https://simcloud.co.za/api/sms.php
All API requests require authentication using a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_TOKEN
Send a new SMS message to a recipient.
POST Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| recipient | string | Yes | Phone number in South African format (+27XXXXXXXXX) |
| message | string | Yes | SMS content (max 459 characters) |
{
"recipient": "+27821234567",
"message": "Hello World!"
}
{
"status": "success",
"message": "SMS queued successfully",
"sms_id": "123456",
"sms_count": 1,
"timestamp": "2024-10-24 14:30:00"
}
{
"status": "error",
"message": "Invalid recipient number, must be in the format +27XXXXXXXXX"
}
Query the status of a sent SMS message.
GET
| Parameter | Type | Required | Description |
|---|---|---|---|
| sms_id | integer | Yes | ID of the SMS message |
GET https://simcloud.co.za/api/sms.php?sms_id=123456
{
"sms_id": "123456",
"status": "delivered"
}
A status of "delivered" means the SMS has been received on the recipient handset.
| Code | Description |
|---|---|
| 400 | Bad Request (invalid parameters) |
| 401 | Unauthorized (invalid or missing token) |
| 404 | Not Found (SMS ID doesn't exist) |
| 500 | Internal Server Error |
For technical support, please contact our support team at customercare@freepaid.co.za.