Send a campaign through an active workspace channel. You can use the template already stored on the campaign or a template specified explicitly in the request.
POST https://api.platica.mx/v1/campaigns/{campaignId}/send
URL parameters
Parameter
Type
Description
Requirement
campaignId
string
Unique identifier of the campaign
required
Request examples
Immediate send using the template stored on the campaign
data contains the response from the upstream sending service, so its structure can vary across workspaces or integrations.
Notes
channelId is the SENDER channel. The responding agent is controlled with responderAgentId (decoupled from the channel): you can send from one number and have a specific agent handle replies without changing the agent connected to that channel. If you omit responderAgentId, the channel's defaultAgentId responds.
If template.name is omitted, the campaign's saved template is used. If the campaign has no configured template, the send fails with 400.
The number of items in params must match exactly the number of variables expected by the template.
If you send buttons, the number of buttons and their indexes must exist in the validated template.
When the template needs media, file must be a valid http or https URL.
All scheduledDates must be in the future at request time.