Send mail

Triggers a configured mailing (send_id) and sends it to a specific subscriber.

The request body is an array of mailing objects. Each object must include a numeric
send_id and a contactid. Additional fields are merged into the mailing data before
processing.

Force-send behaviour

This endpoint bypasses scheduling and mailing-state checks. The mailing is sent
regardless of its send_active flag, send_status (even if already sent), or
send_date. The mailing record is used as a template only.

The only guard that can prevent sending is the subscriber's active status: if the
subscriber is not in an active state (active1, 3, 4, 6), the send is skipped
silently and the response returns sent: 0.

Fields

FieldRequiredDescription
send_idYesID of the configured mailing to use as a template
contactidYesSubscriber record ID to send to. If omitted, no email is sent (returns sent: 0 without error).
mssys_text_content_partNoInjected into the email where the merge tag [mssys_text_content_part] appears in the letter template (plain-text part). Has no effect if the merge tag is absent from the template.
mssys_html_content_partNoInjected into the email where the merge tag [mssys_html_content_part] appears in the letter template (HTML part). Has no effect if the merge tag is absent from the template.

Any other fields accepted by the mailing system can also be passed and will be merged
into the mailing data.

Using mssys_text_content_part / mssys_html_content_part

These fields work as merge tag substitutions, not full-body overrides. The letter
template (set up in the admin UI) must contain the corresponding merge tag where the
dynamic content should appear:

  • To let the API control the entire email body, create a skeleton letter whose HTML
    body is just [mssys_html_content_part] and whose text body is just
    [mssys_text_content_part].
  • To inject content into a specific section of an existing template, place
    [mssys_html_content_part] at the desired location in the template.

Error codes

CodeMeaning
10101Body is not an array, or send_id is not numeric
10102send_id does not belong to the authenticated account
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required

The ID of the configured mailing (send) to trigger

integer

The subscriber record ID to send the mailing to. If omitted, no email is sent
(the API returns sent: 0 without an error).

string

Overrides the plain-text body of the email for this send.

string

Overrides the HTML body of the email for this send.

Responses

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