Create a letter action

Create an action that fires when a subscriber interacts with a letter.

Letter triggers (letter_trigger):

  • on_open — fires when the letter is opened
  • on_any_click — fires on any link click in the letter
  • on_link_click — fires when any of the specified links in link_urls are clicked (requires link_urls)

source_list_id — optional source list override.

  • Omit or pass 0 (default): the source list is determined automatically from the send/campaign at execution time. Recommended when the letter is used in multiple sends targeting different lists.
  • Pass a specific list ID: that list is always used as the source, regardless of which list the send is addressed to.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

ID of the letter

Body Params
string
enum
required

Type of action to perform. See "Task, ticket, payment and voice actions" in the introduction for the types beyond the first five.

string
required

Descriptive name of the action

string
enum
required

Letter event that triggers this action

Allowed:
integer

Source list override. Optional.

  • 0 or omitted (default): source list is determined automatically from the send/campaign at execution time.
  • Specific ID: that list is always used as the source regardless of which list the send targets.
integer

Target list — the contact is subscribed to / unsubscribed from / updated in / deleted from this list.
Required for subscribe, unsubscribe, update, delete. Not required for external.

fields
array of objects

Field-value pairs to update. Required when action_type is update.

fields
string

Webhook URL to call. Required when action_type is external, unless the external object is sent.

string
enum
Defaults to json

Data format for the external call.

Allowed:
string

HTTP Basic auth username for the external call.

string

HTTP Basic auth password for the external call.

boolean

Send a notification email when this action fires.

target_segments
array of integers

Target list segment IDs to filter by. Only contacts in (or not in) these segments are affected. Omit to disable filtering.

target_segments
string
enum
Defaults to or

Logical connector between target segments.

Allowed:
target_segment_negated_ids
array of integers

Subset of target_segments IDs to negate — contacts in these segments are excluded instead of included.

target_segment_negated_ids
target_condition
object | null

Custom condition of one side of an action, in the same structure as the conditions of the Segments API (see the Segments API for field types and operators).
On create and update: {"groups": []} or null means no condition (on update it removes the existing one). The side must not also have *_segments.

boolean

Only for update actions — subscribe the contact to the target list when it is not on it yet ("Ha nincs a listán, iratkoztassa fel"). Omit to keep the stored value.

execution
object

The execution settings of an action ("Végrehajtás módja"). In a response every setting is present (overwrite_mode only for update actions). In a create or update request every setting is optional; an omitted one keeps its stored value (a new action: every_occurrence, first, non_empty_values, all flags false).

external
object

Every setting of an external action, in the keys the action editor stores them. All values are strings. Which keys apply depends on ea_type:

ea_typeSettings
rest (RESTful, általános)ea_rest_url (required), ea_rest_username, ea_rest_password*, ea_rest_dataformat (json, post, get, shoprenter), ea_senddata, ea_headerdata
taskmanas rest; ea_rest_url must be one of the account's own Taskman scripts
cm (Cégmenedzser, letter actions only)ea_cm_username, ea_cm_password*, ea_cm_function (RegisterPartner, HirlevelLeirat), ea_senddata, ea_headerdata
membermouseea_membermouse_apiurl, ea_membermouse_username(API key), ea_membermouse_password (API secret), ea_membermouse_method (create_member, update_membership_status, add_bundle, remove_bundle), ea_membermouse_membership_levelid, ea_membermouse_update_mstatus (1–5), ea_membermouse_bundleid
restrictcontentproea_restrictcpro_apiurl, ea_restrictcpro_username, ea_restrictcpro_password*, ea_restrictcpro_method (create_member, delete_member, add_membership_level, delete_membership_level, update_membership_level), ea_restrictcpro_membership_levelid, ea_restrictcpro_update_mstatus (active, pending, cancelled, expired)
webshippyea_webshippy_method (create, update, delete) — the source list must be an order list with the integration
boxyea_boxy_method (create, update, delete) — as webshippy
unasea_unas_shopid (an own shop), ea_unas_endpoint, ea_unas_requestbody (all required)
salesautopilot (SalesAutopilot API)sa_api_target (0 own account, 1 another account), ea_rest_username_sa and ea_rest_password_sa* (another account only), ea_rest_method (subscribe, saveOrder, update, delete), ea_rest_nl_id (target list), ea_rest_ns_id (form; not for delete), ea_rest_insert_type (0 same field names, 1 field pairs), ea_rest_field_pairs ({"<target field>": "<source field>"}, with insert type 1)

* secret: never returned. In a response saved_secrets lists the secrets that are set. In a request an omitted or empty secret keeps the stored one; clear_secrets deletes it.

crm

The settings of a create_task or a create_ticket action.

payment
object

The settings of a set_recurring_date, set_recurring_price or set_recurring_frequency action; see the introduction for the keys of each type.

eleven_labs
object
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json