Emails
Create e-mail automation
/ v1 / email / automations Creates an automation (a series of emails that starts on a trigger). It is inactive and sends nothing yet.
- Add its emails with
POST /v1/email/automations/{automation_id}/emails. - Activate the automation with
POST /v1/email/automations/{automation_id}/status. - Activate each email with
POST /v1/email/automation-emails/{email_id}/status.
Both activations need the confirmation of the account owner. The answer is the automation, as in GET /v1/email/automations/{automation_id}.
Authorization
-
Authorizationstring header requiredBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Introduction
Body application/json
-
namestring requiredName in the Tentary app (contacts do not see it).
min length
1max length255 -
triggerstring requiredWhat starts the series for a contact: new_subscriber (newsletter sign-up), any_purchase, or purchase_of_products (one of trigger_product_ids). Only contacts who subscribed to the newsletter get the e-mails.
Allowed values:
new_subscriberany_purchasepurchase_of_products -
trigger_product_idsarray of integerFor purchase_of_products: products from list_products.
min
1max items200 -
exit_product_idsarray of integerContacts who buy one of these products leave the automation (for example the product that the series sells). [] = none.
min
1max items200
Response
Fields of the answer with status 200. Errors always have the same format, see Errors.
-
idintegerThe ID.
-
namestringName in the Tentary app.
-
statusstringThe status.
Allowed values:
activeinactive -
triggerstring can be nullWhat starts the series for a contact.
Allowed values:
new_subscriberany_purchasepurchase_of_productsnull -
trigger_productsarray of objectFor purchase_of_products.
Show 2 fields Hide fields
-
idintegerThe ID.
-
namestring can be nullThe name.
-
-
active_emailsintegerActive e-mails in the series.
-
contacts_in_automationintegerContacts in the series now.
-
active_sincestring<date-time> can be nullUTC, like 2026-01-31T14:05:00Z.
-
admin_urlstring<uri>The page in the Tentary app.
-
exit_productsarray of objectContacts who buy one of these products leave the automation.
Show 2 fields Hide fields
-
idintegerThe ID.
-
namestring can be nullThe name.
-
-
emailsarray of objectIn the order of the app page (send time).
Show 10 fields Hide fields
-
idintegerThe ID.
-
namestringThe name.
-
subjectstringThe subject line.
-
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.
-
text_previewstringThe start of the text, without HTML.
-
sentintegerE-mails sent.
-
deliveryobjectE-mails per delivery state. skipped = left out by the cooldown.
Show 6 fields Hide fields
-
waitingintegerWaiting to be sent.
-
skippedintegerLeft out by the cooldown.
-
failedintegerCould not be sent.
-
soft_bouncesintegerSoft bounces (a temporary problem, like a full inbox).
-
hard_bouncesintegerHard bounces (the address does not exist).
-
spam_complaintsintegerMarked as spam by the recipient.
-
-
admin_urlstring<uri>The page in the Tentary app.
-
-
more_emailsbooleantrue = the automation has more e-mails than this list (see the app).