Campaign
Send or schedule a campaign
Sends or schedules this campaign. The campaign must be in the draft or scheduled status, and must be fully configured (e.g. with a group, route, and message content).
For broadcast campaigns, this will send the campaign immediately if the campaign's schedule_mode is immediate. If schedule_mode is at_time, it will schedule the campaign to be sent at the time of the schedule_time timestamp.
For relative and anniversary campaigns, this will schedule the campaign according to the configuration in the items and date_variable properties.
post/v1/projects/{project_id}/campaigns/{id}/send
Request
- Base URL: https://api.telerivet.com
- URL: https://api.telerivet.com/v1/projects/{project_id}/campaigns/{id}/send
- 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
idstring required
ID of the Campaign
Response
Successful response
Example response
{
"id": "CM2ad0100821a98bea",
"name": "Test Campaign",
"campaign_type": "broadcast_text",
"status": "draft",
"group_id": "CG02139128391fa",
"route_id": "RT2a586298d3412adf",
"broadcast_id": "MB2489812e59c5c781",
"estimated_count": 12942,
"message_count": 8358,
"solution_id": "SO2ad0100821a98bea",
"schedule_mode": "immediate",
"content": "Hello world",
"service_id": "SV3d246818d0e3d1fb",
"message_type": "sms",
"timezone_id": "America/Los_Angeles",
"time_created": 1390348075,
"time_updated": 1390348075,
"url": "https://telerivet.com/p/asdf/campaign/CM2ad0100821a98bea",
"url_edit": "https://telerivet.com/p/asdf/campaign/CM2ad0100821a98bea/edit",
"url_send": "https://telerivet.com/p/asdf/campaign/CM2ad0100821a98bea/preview",
"user_id": "URba3e403e98f49735",
"project_id": "PJ2ad0100821a98bea"
}Changes
No recorded changes to this operation across all 1 revision of this API.