Emails
Create automation e-mail
/ v1 / email / automations / {automation_id} / emails Adds an email to an automation. It is inactive and reaches nobody until it is activated with POST /v1/email/automation-emails/{email_id}/status, which needs the confirmation of the account owner.
The app shows the emails in the order of their send time. The answer is the email, as in GET /v1/email/automation-emails/{email_id}.
Authorization
-
Authorizationstring header requiredBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Introduction
Path parameters
-
automation_idinteger requiredThe id from list_email_automations or create_email_automation.
min
1Example:852
Body application/json
-
namestring requiredName in the Tentary app (contacts do not see it).
min length
1max length255 -
subjectstringThe subject line. Takes %FIRST_NAME%, %FULL_NAME% and %EMAIL%.
max length
255 -
body_htmlstringThe text as HTML: p, br, h1-h3, strong, em, u, del, ul, ol, li, blockquote, a (class "button" makes a button), img with a https src (the image_url from finish_image), span; style only color and background-color. Takes %FIRST_NAME%, %FULL_NAME% and %EMAIL%. Only https:// links, no link shorteners. Tentary adds the seller's design, imprint and unsubscribe link: do not write them.
max length
65535 -
send_after_daysintegerDays after the trigger. 0 = at once (default).
min
0max3650 -
send_hour_utcinteger can be nullWith send_after_days 1 or more: the hour (UTC) of that day, default 14. Convert from the seller's time zone (get_account_overview).
min
0max23
Response
Fields of the answer with status 200. Errors always have the same format, see Errors.
-
idintegerThe ID.
-
automation_idintegerThe automation ID.
-
namestringThe name.
-
subjectstringThe subject line.
-
body_htmlstringThe text as HTML.
-
statusstringThe status.
Allowed values:
activeinactive -
send_after_daysintegerDays after the trigger. 0 = at once.
-
send_hour_utcinteger can be nullHour (UTC) of the send day. null with send_after_days 0.
-
admin_urlstring<uri>The page in the Tentary app.