Skip to main content

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. Returns 404 if the template doesn't exist.
  • channel: email, sms, on_site, web_push or push_in_app.
  • Recipients: for email and sms, list the email addresses or phone numbers in contacts. For on_site, web_push and push_in_app, send the playerId.
  • placeholders: the values that fill the template, as key / value pairs. To send translations instead of a single value, leave value empty and use languages.
  • 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​

Accepted