Trigger a campaign

Use this endpoint to trigger an event-triggered or API-triggered campaign for a specific user.

Body Params

Required parameters to trigger a campaign.

string
required

Specify the email address of the user for whom you want to trigger the campaign.

string
required

Specify the UUID of the campaign that you want to trigger. You can copy the UUID from the URL of the campaign on the Blueshift app. For example, if you open a campaign in the Blueshift app, its URL looks like https://app.getblueshift.com/dashboard#/app/campaigns/<CAMPAIGN_UUID>/details.

email_attachments
array of strings

Specify the URLs of the files that you want to send as an attachment along with the email.

email_attachments
boolean
Defaults to false

Set to true if the campaign must be processed as a high priority campaign. Blueshift first processes all high priority campaigns in a first in first out order. This is followed by all other campaigns in a first in first out order. The default value is false.

string

Optionally include the transaction UUID (must be a well formed UUID) to avoid duplicate messages. The API returns a 200 status code for a duplicate request along with a message noting that a request with the given transaction UUID was already processed.

Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json