Send a message to a group
Sends a text message (optionally with mail-merge templates) or voice call to a group or a list of up to 500 phone numbers.
With message_type=service, invokes an automated service (such as a poll) for a group or list of phone numbers. Any service that can be triggered for a contact can be invoked via this method, whether or not the service actually sends a message.
If Message Review is enabled for the project and the broadcast requires approval (because it exceeds the project's review threshold, or because the project requires approval for messages sent via AI tools), the broadcast will not be sent immediately; instead, it will be submitted for review as a scheduled message, and will be sent when a reviewer approves it. In this case, the response will contain status=pending_review, scheduled_message_id, and url (a link to the approval page in the web app) properties instead of the normal broadcast properties (no id property will be returned). The project's message_review property (returned by getProjectById) shows in advance whether sends will require approval.
Request
- Base URL: https://api.telerivet.com
- URL: https://api.telerivet.com/v1/projects/{project_id}/send_broadcast
- Auth: one of:
- HTTP basic
- OAuth 2 (authorization code, authorization URL https://telerivet.com/oauth/authorize, token URL https://api.telerivet.com/oauth/token)
Path parameters
ID of the Project
Request body
Example request
{
"content": "hello [[contact.name]]!",
"status_url": "https://example.com/sms_status.php",
"status_secret": "t0psecr3t",
"replace_variables": true
}Response
Successful response
Example response
{
"id": "MB2489812e59c5c781",
"title": "+16505550123, Subscribers, Contact Filter",
"time_created": 1390348075,
"last_message_time": 1390348085,
"last_send_time": 1390348086,
"message_count": 8358,
"estimated_count": 12942,
"num_parts": 12321,
"message_type": "sms",
"content": "Hello [[contact.name]]!",
"replace_variables": true,
"status": "queuing",
"source": "service",
"clicked_count": 12,
"price": 13.34,
"price_currency": "USD",
"reply_count": 43,
"last_reply_time": 1390348132,
"route_id": "RT2a586298d3412adf",
"service_id": "SV3d246818d0e3d1fb",
"url": "https://telerivet.com/p/asdf/broadcast/MB2489812e59c5c781",
"user_id": "URba3e403e98f49735",
"project_id": "PJ2ad0100821a98bea"
}Changes
No recorded changes to this operation across all 1 revision of this API.