Send
Send SMS, MMS or WhatsApp to a Segment
Changed onTo send an SMS, MMS or WhatsApp to only a few subscribers in a group, you can either upload a CSV file through the Upload file for segment API and attach the file URL in the segment API, attach an array of ListIds, or pass subscriberNumbers in the request body schema.
Audience Resolution Precedence Logic:
- If 'segmentSubscriberFileUrl' is provided, the system processes the CSV file and completely ignores both 'listIds' and 'subscriberNumbers'.
- If 'segmentSubscriberFileUrl' is null/omitted and 'listIds' is provided, the system delivers the message to the specified segment lists and ignores 'subscriberNumbers'.
- If both 'segmentSubscriberFileUrl' and 'listIds' are null/omitted, the system defaults to sending the message directly to the array of numbers provided in 'subscriberNumbers'.
Supports multi-channel delivery including SMS, MMS (requires pre-uploading media files to attach a valid 'mediaPath'), and WhatsApp (requires an approved WhatsApp template layout).
post/orgunit/{orgunitId}/groups/{groupId}/messages/segment
Request
- Base URLhttps://api-docs.ministrybytext.com (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
orgunitIdstring required
orgunitId
groupIdstring required
groupId
Request body
Response
Success
Changes
- breaking
the request property
became required - info
added the new optional request property
- breaking