Emails
E-mail campaign
/ v1 / email / campaigns / {campaign_id} One campaign with its subject, full text (HTML), audience and status.
For a draft, problems_before_sending lists what stops sending, in the Tentary app and with POST /v1/email/campaigns/{campaign_id}/send.
The fields have the same names as in PATCH /v1/email/campaigns/{campaign_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
-
campaign_idinteger requiredThe id from list_email_campaigns.
min
1Example:801
Response
Fields of the answer with status 200. Errors always have the same format, see Errors.
-
idintegerThe ID.
-
namestringName in the Tentary app.
-
subjectstringThe subject line.
-
body_htmlstringThe text as HTML.
-
audiencestringAlways only contacts who subscribed to the newsletter.
Allowed values:
all_subscribersall_buyersall_non_buyerssubscribers_who_boughtsubscribers_who_did_not_buy -
product_idsarray of integerFor subscribers_who_bought and subscribers_who_did_not_buy.
-
statusstringThe status.
Allowed values:
draftscheduledsendingsent -
send_atstring<date-time> can be nullUTC, like 2026-01-31T14:05:00Z. null for a draft.
-
problems_before_sendingarray of stringFor a draft: what stops sending. Empty = it can be sent.
-
admin_urlstring<uri>The page in the Tentary app.