Single Sends

Sending an SMS message.

We'll mainly discuss the primary integration method for Panacea Mobile SMS Gateway (PM-SMS) called the "Message Send" endpoint. It's the go-to option for sending individual messages.

message_send()

This method is for sending a single transactional message. Examples of this could be sending a verification code to a user via SMS or another similar type of notification.

GET /https://api.panaceamobile.com/json?

Please reach out to your Account Manager or Support to confirm your API URL as this may vary depending on your specific account configuration.

Parameters

HTTPS GET Parameters
Type
Description

action

message_send

Set to message_send for this endpoint

username

userx

Your account username

password

passwordy

Your account password

to

27821230000

Destination phone number

from

12345

Sender ID – this can be any value and can be used as an internal reference

text

This is your SMS text

URL Encoded message text content

client_reference

REF12300089

Customer provided reference (Optional)

charset

Defaults to GSM-7 bit (Advanced)

auto_detect_encoding

Default to β€œyes”, this ensures that is special characters are used the system will encode the message correctly. This may incur extra costs.

report_mask

Defaults to 19, only used with report_url

report_url

If provided, PM-SMS system will ping back to

this URL with message delivery status.

verbose

1

Set to 1 to get additional details in the API response. *Please contact your Account Manager or Support to verify if this feature is available for your account configuration.

BOLD PARAMETERS ARE MANDATORY

Example API Call:

https://api.panaceamobile.com/json?action=message_send&username=userx&password=passwordy&to=27820123456&from=12345&text=URL+encoded+text+string&client_reference=REF12345

Example Output:

{
"status":1,"message":"Sent","details":"8beda1a8-5c12-489f-0107-123000000003"
}

For developers looking for practical implementation guidance, please visit our Examples page. Here, you'll find a comprehensive collection of code samples tailored to help you integrate and use our HTTPS API effectively.

Last updated