Skip to main content
POST
https://api.mobiska.com/v1
/
send_sms
Send SMS
curl --request POST \
  --url https://api.mobiska.com/v1/send_sms \
  --header 'Content-Type: application/json' \
  --data '
{
  "service_id": 123,
  "sender_id": "<string>",
  "msg_body": "<string>",
  "recipient_number": [
    {}
  ],
  "unique_id": "<string>"
}
'
{
  "response_code": "<string>",
  "response_message": "<string>",
  "response_data": {
    "message_id": "<string>",
    "status": "<string>"
  }
}
Send SMS messages to one or multiple recipients using your SMS balance.

Request Body

service_id
integer
required
Your service identifier
sender_id
string
required
Approved sender ID for the message
msg_body
string
required
Content of the SMS message
recipient_number
array
required
Array of recipient phone numbers
unique_id
string
required
Unique identifier for the message

Example Request

curl -X POST https://api.mobiska.com/v1/send_sms \
  -H "Authorization: Basic YOUR_ENCODED_API_KEYS" \
  -H "Content-Type: application/json" \
  -d '{
    "service_id": 2,
    "sender_id": "Mobiska",
    "msg_body": "Welcome to Mobiska!\nYour account has been successfully created.",
    "recipient_number": ["0541840988"],
    "unique_id": "1"
  }'

Response

response_code
string
Status code of the request
response_message
string
Human-readable status message
response_data
object
{
  "response_code": "000",
  "response_message": "Message sent successfully",
  "response_data": {
    "message_id": "MSG123456789",
    "status": "sent"
  }
}