ScheduledMessage
Schedule a message
Schedules a message to a group or single contact. Note that Telerivet only sends scheduled messages approximately once every 15 seconds, so it is not possible to control the exact second at which a scheduled message is sent.
Only one of the parameters group_id, to_number, and contact_id should be provided.
With message_type=service, schedules an automated service (such as a poll) to be invoked for a group or an individual contact. Any service that can be triggered for a contact can be scheduled via this method, whether or not the service actually sends a message.
post/v1/projects/{project_id}/scheduled
Request
- Base URL: https://api.telerivet.com
- URL: https://api.telerivet.com/v1/projects/{project_id}/scheduled
- 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
project_idstring required
ID of the Project
Request body
Example request
{
"content": "Reminder!",
"to_number": "+16505550234",
"start_time_offset": 86400
}Response
Successful response
Example response
{
"id": "SEfaf2411ed3584f08",
"content": "hello world!",
"rrule": "COUNT=1",
"timezone_id": "America/Los_Angeles",
"recipients_str": "+16505550123, Subscribers",
"route_id": "PN4d246818d0ecd1fa",
"service_id": "SV3d246818d0e3d1fb",
"message_type": "sms",
"time_created": 1395617416,
"start_time": 1395617516,
"next_time": 1395617516,
"relative_scheduled_id": "PJ2ad0100821a98bea",
"project_id": "PJ2ad0100821a98bea"
}Changes
No recorded changes to this operation across all 1 revision of this API.