English EN
API Reference
API Reference

Emails

Create e-mail campaign

POST / v1 / email / campaigns

Writes a newsletter (an email to subscribers, sent once) as a draft. It sends nothing.

  1. The account owner checks the draft at admin_url.
  2. POST /v1/email/test sends a test to the account owner.
  3. POST /v1/email/campaigns/{campaign_id}/send sends or schedules it after the account owner confirms.

The answer is the campaign, as in GET /v1/email/campaigns/{campaign_id}.

Changes at once MCP tool create_email_campaign

Authorization

  • Authorization string header required

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

Body application/json

  • name string required

    Name in the Tentary app (subscribers 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

  • audience string

    Who gets it, always only contacts who subscribed to the newsletter: all_subscribers (default), all_buyers, all_non_buyers, subscribers_who_bought or subscribers_who_did_not_buy one of product_ids.

    Allowed values: all_subscribersall_buyersall_non_buyerssubscribers_who_boughtsubscribers_who_did_not_buy

  • product_ids array of integer

    For subscribers_who_bought and subscribers_who_did_not_buy: products from list_products.

    min 1 max items 200

Response

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

  • id integer

    The ID.

  • name string

    Name in the Tentary app.

  • subject string

    The subject line.

  • body_html string

    The text as HTML.

  • audience string

    Always only contacts who subscribed to the newsletter.

    Allowed values: all_subscribersall_buyersall_non_buyerssubscribers_who_boughtsubscribers_who_did_not_buy

  • product_ids array of integer

    For subscribers_who_bought and subscribers_who_did_not_buy.

  • status string

    The status.

    Allowed values: draftscheduledsendingsent

  • send_at string<date-time> can be null

    UTC, like 2026-01-31T14:05:00Z. null for a draft.

  • problems_before_sending array of string

    For a draft: what stops sending. Empty = it can be sent.

  • admin_url string<uri>

    The page in the Tentary app.

Start typing to search.