Send SMS
AI-generatedSummary
Send SMS messages to multiple contacts using the Guni SMS API with specified sender ID, campaign type, message content, and Unicode allowance.
Inputs
- Sender Name or ID (required) — Select or specify the sender ID for the SMS message.
- Campaign Type — Choose between 'Promotional' or 'Notification' campaign types, affecting opt-out handling and message suffixes.
- Message (required) — The SMS message content to send, allowing up to 1224 GSM characters.
- Allow Unicode — Enable to send Unicode characters; disable to strip non-ASCII characters from the message.
Output shape
a list of JSON objects, each indicating success or failure per input item; on success, includes details like successfully sent and invalid contacts, message properties (length, parts, encoding, unicode status), sender info, and raw API response.
The operation expects input JSON to include a 'contacts' array under 'body.contacts' or similar structure; contacts are sanitized and validated for Australian numbers. Messages are adjusted with opt-out phrases depending on campaign type and sender. If no valid contacts are found, an error is returned per item.
Examples
Example 1: Send a promotional SMS with a selected sender ID to multiple contacts.
Set sender ID, campaign type to 'promotional', supply message text and optionally enable Unicode; provide contacts list in input JSON under 'body.contacts'.