Sends campaigns
POST/rx-api/campaign/v1/send/campaign
Send a campaign using a PEP CRM template. Each request sends one template on one channel.
templateId: the template to send. Returns404if the template doesn't exist.channel:email,sms,on_site,web_pushorpush_in_app.- Recipients: for
emailandsms, list the email addresses or phone numbers incontacts. Foron_site,web_pushandpush_in_app, send theplayerId. placeholders: the values that fill the template, askey/valuepairs. To send translations instead of a single value, leavevalueempty and uselanguages.defaultLanguage: the recipient's language, used to pick the template language. If empty, the platform's default language is used.
Returns 202 Accepted: the campaign is queued and sent asynchronously.
Request
Responses
- 202
- 400
- 401
- 404
- 500
- default
Accepted
400 (BAD REQUEST) error with some field in the request
401 Unauthorized
404 Template not found
500 (Error) Internal server Error
An unexpected error response.