Trigger an Email

Sends an email based on a pre-configured campaign template. You must provide a valid NPI, Campaign ID, and an authorization Token. Optional fields allow for test sends and dynamic overrides of sender name, sender email username, reply-to address, subject line, and preheader.

Authentication

Include the API Key in the Authorization header of all API requests:

Authorization: <YOUR_API_KEY>


🔑

To generate the API Key follow the instructions outlined here. The API Key is required for all authenticated requests. Make sure to keep it secure and do not share.


Sample Request Payloads

{
  "NPI": "1987654321",
  "CampaignId": "123",
  "Token": "1A23B456-1111-2222-3333-A12B3C4D5E6F",
  "Custom1": "P-12345"
}
{
  "NPI": "9876543210",
  "CampaignId": "2345",
  "Token": "A123B456-1111-2222-3333-1A2B3C4D5E6F",
  "IsTest": true,
  "TestEmail": "[email protected]",
  "Custom1": "Q2 Newsletter Preview",
  "Custom2": "Internal Test"
}
{
  "NPI": "1987654321",
  "CampaignId": "7891",
  "Token": "A123B456-1111-2222-3333-1A2B3C4D5E6F",
  "FromName": "Dr. Jane Smith",
  "FromEmailUsername": "jane.smith",
  "ReplyTo": "[email protected]",
  "SubjectLine": "Your Q2 Newsletter",
  "Preheader": "Check out our latest updates"
}
👍

When the API request is successful and the triggered email is successfully queued, a 'requestId' is returned in the response. ThisrequestIdcan be used to track and retrieve all engagement data related to the request.

Body Params

Details for the email to be triggered. npi, campaignId, and token are mandatory.

string
required

Provide a valid target HCP (Healthcare Provider) NPI (National Provider Identifier).

number
required

The pre-configured Campaign ID for the desired email template to deploy.

string
required

Provide the secret token authorized for the specified campaign.

boolean

(Optional) Set to true to send a test email. If true, the testEmail field becomes required. Defaults to false if not provided.

string

(Optional) Email address to send test emails to when isTest is true. This field is required if isTest is set to true.

string

(Optional) Override the sender display name for this email. Maximum length: 500 characters.

string

(Optional) Override the local part of the sender email address (no domain allowed). Maximum length: 500 characters (including domain parts).

string

(Optional) Override the reply-to email address. Must be a valid email address. Maximum length: 500 characters.

string

(Optional) Override the email subject line. Maximum length is configurable via application settings (current value: 1000 characters).

string

(Optional) Override the email preheader text. Maximum length is configurable via application settings (current value: 1000 characters).

string

(Optional) Custom passthrough or merge tag field. This can be used for dynamic content in the email template (e.g., a meeting date, a personalized greeting).

string

(Optional) Additional custom passthrough or merge tag field for more dynamic content (e.g., a specific product name, a discount code).

Responses

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