English EN
API Reference
API Reference

Emails

Update automation e-mail

PATCH / v1 / email / automation-emails / {email_id}

Changes the fields that you send. All other fields stay, the status too.

  • The new text of an active email also applies to emails that wait to be sent.
  • An active email keeps its send time and needs a subject and a text.
Changes at once MCP tool update_automation_email

Authorization

  • Authorization string header required

    Bearer tnt_… · A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Introduction

Path parameters

  • email_id integer required

    The id of an e-mail from get_email_automation.

    min 1 Example: 862

Body application/json

  • name string

    Name in the Tentary app (contacts do not see it).

    min length 1 max length 255

  • subject string

    The subject line. Takes %FIRST_NAME%, %FULL_NAME% and %EMAIL%.

    max length 255

  • body_html string

    The 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_days integer

    Days after the trigger. 0 = at once (default).

    min 0 max 3650

  • send_hour_utc integer can be null

    With 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 0 max 23

Response

Fields of the answer with status 200. Errors always have the same format, see Errors.

  • id integer

    The ID.

  • automation_id integer

    The automation ID.

  • name string

    The name.

  • subject string

    The subject line.

  • body_html string

    The text as HTML.

  • status string

    The status.

    Allowed values: activeinactive

  • send_after_days integer

    Days after the trigger. 0 = at once.

  • send_hour_utc integer can be null

    Hour (UTC) of the send day. null with send_after_days 0.

  • admin_url string<uri>

    The page in the Tentary app.

Start typing to search.