Deutsch DE
API-Referenz
API-Referenz

E-Mails

Create e-mail automation

POST / v1 / email / automations

Creates an automation (a series of emails that starts on a trigger). It is inactive and sends nothing yet.

  1. Add its emails with POST /v1/email/automations/{automation_id}/emails.
  2. Activate the automation with POST /v1/email/automations/{automation_id}/status.
  3. 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}.

Ändert sofort MCP-Werkzeug create_email_automation

Autorisierung

  • Authorization string Header erforderlich

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

Body application/json

  • name string erforderlich

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

    min. Länge 1 max. Länge 255

  • trigger string erforderlich

    What 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.

    Mögliche Werte: new_subscriberany_purchasepurchase_of_products

  • trigger_product_ids array of integer

    For purchase_of_products: products from list_products.

    min. 1 max. Einträge 200

  • exit_product_ids array of integer

    Contacts who buy one of these products leave the automation (for example the product that the series sells). [] = none.

    min. 1 max. Einträge 200

Antwort

Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.

  • id integer

    The ID.

  • name string

    Name in the Tentary app.

  • status string

    The status.

    Mögliche Werte: activeinactive

  • trigger string kann null sein

    What starts the series for a contact.

    Mögliche Werte: new_subscriberany_purchasepurchase_of_productsnull

  • trigger_products array of object

    For purchase_of_products.

    2 Felder anzeigen Felder ausblenden
    • id integer

      The ID.

    • name string kann null sein

      The name.

  • active_emails integer

    Active e-mails in the series.

  • contacts_in_automation integer

    Contacts in the series now.

  • active_since string<date-time> kann null sein

    UTC, like 2026-01-31T14:05:00Z.

  • admin_url string<uri>

    The page in the Tentary app.

  • exit_products array of object

    Contacts who buy one of these products leave the automation.

    2 Felder anzeigen Felder ausblenden
    • id integer

      The ID.

    • name string kann null sein

      The name.

  • emails array of object

    In the order of the app page (send time).

    10 Felder anzeigen Felder ausblenden
    • id integer

      The ID.

    • name string

      The name.

    • subject string

      The subject line.

    • status string

      The status.

      Mögliche Werte: activeinactive

    • send_after_days integer

      Days after the trigger. 0 = at once.

    • send_hour_utc integer kann null sein

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

    • text_preview string

      The start of the text, without HTML.

    • sent integer

      E-mails sent.

    • delivery object

      E-mails per delivery state. skipped = left out by the cooldown.

      6 Felder anzeigen Felder ausblenden
      • waiting integer

        Waiting to be sent.

      • skipped integer

        Left out by the cooldown.

      • failed integer

        Could not be sent.

      • soft_bounces integer

        Soft bounces (a temporary problem, like a full inbox).

      • hard_bounces integer

        Hard bounces (the address does not exist).

      • spam_complaints integer

        Marked as spam by the recipient.

    • admin_url string<uri>

      The page in the Tentary app.

  • more_emails boolean

    true = the automation has more e-mails than this list (see the app).

Tippe, um zu suchen.