Lettr
lettrLettr is an email and messaging platform for transactional delivery, templates, audiences, campaigns, domains, and webhooks.
Acciones disponibles (60)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Attach Contacts to ListsLETTR_ATTACH_CONTACTS_TO_LISTSAcciónAttach every combination of 1-1000 contacts and 1-50 audience lists, processing up to 50,000 contact-list pairs and reporting new and existing memberships.
LETTR_ATTACH_CONTACTS_TO_LISTSAcciónAttach every combination of 1-1000 contacts and 1-50 audience lists, processing up to 50,000 contact-list pairs and reporting new and existing memberships.
Parámetros de entrada
list_idsstring[]ObligatorioIDs of 1-50 team-owned audience lists. Every contact in contact_ids is attached to every list.
contact_idsstring[]ObligatorioIDs of 1-1000 team-owned contacts to attach. Every contact is attached to every list in list_ids.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Bulk Create Audience ContactsLETTR_BULK_CREATE_AUDIENCE_CONTACTSAcciónCreate or recognize up to 1000 normalized, deduplicated contacts. Shared properties affect only newly created contacts; list_id applies to all contacts, including those that already exist.
LETTR_BULK_CREATE_AUDIENCE_CONTACTSAcciónCreate or recognize up to 1000 normalized, deduplicated contacts. Shared properties affect only newly created contacts; list_id applies to all contacts, including those that already exist.
Parámetros de entrada
emailsstring[]ObligatorioEmail addresses to normalize, deduplicate, and create (1-1000).
list_idstringuuidOptional team-owned audience list UUID to attach every contact to.
propertiesobjectCustom property values applied identically only to newly created contacts; existing contacts are not updated. Each value is at most 1000 characters.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel Scheduled EmailLETTR_CANCEL_SCHEDULED_EMAILAcciónCancel a scheduled email before its delivery time; cancellation is unavailable once processing has begun.
LETTR_CANCEL_SCHEDULED_EMAILAcciónCancel a scheduled email before its delivery time; cancellation is unavailable once processing has begun.
Parámetros de entrada
transmission_idstringObligatorioTransmission ID returned by SCHEDULE_EMAIL.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Audience ContactLETTR_CREATE_AUDIENCE_CONTACTAcciónCreate one audience contact with optional properties and list membership.
LETTR_CREATE_AUDIENCE_CONTACTAcciónCreate one audience contact with optional properties and list membership.
Parámetros de entrada
emailstringObligatorioemailContact email address.
list_idstringuuidOptional team-owned audience list UUID to attach the new contact to.
propertiesobjectCustom values keyed by property names already defined for the team; each value is at most 1000 characters.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Audience Contact With Double Opt-InLETTR_CREATE_AUDIENCE_CONTACT_WITH_DOUBLE_OPT_INAcciónCreate an unverified audience contact and irreversibly send an external confirmation email; the contact becomes subscribed only after confirming.
LETTR_CREATE_AUDIENCE_CONTACT_WITH_DOUBLE_OPT_INAcciónCreate an unverified audience contact and irreversibly send an external confirmation email; the contact becomes subscribed only after confirming.
Parámetros de entrada
emailstringObligatorioemailContact email address.
list_idstringuuidOptional team-owned audience list UUID to attach the new contact to.
propertiesobjectCustom values keyed by property names already defined for the team; each value is at most 1000 characters.
double_opt_inobjectObligatorioRequired confirmation-email settings. The contact remains unverified until the recipient confirms.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Audience ListLETTR_CREATE_AUDIENCE_LISTAcciónCreate a uniquely named audience list for grouping contacts.
LETTR_CREATE_AUDIENCE_LISTAcciónCreate a uniquely named audience list for grouping contacts.
Parámetros de entrada
namestringObligatorioList name, which must be unique within the team.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Audience PropertyLETTR_CREATE_AUDIENCE_PROPERTYAcciónDefine a custom contact property with an immutable name and value type. Changing either later requires deleting and recreating the property.
LETTR_CREATE_AUDIENCE_PROPERTYAcciónDefine a custom contact property with an immutable name and value type. Changing either later requires deleting and recreating the property.
Parámetros de entrada
namestringObligatorioImmutable property key. It must start with a lowercase letter and use only lowercase letters, numbers, and underscores.
property_typestringObligatorioenumImmutable value type. The optional fallback_value remains a string and is interpreted according to this type.
stringnumberbooleandatejsonfallback_valuestringOptional fallback string interpreted according to property_type, or null for no fallback.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Audience SegmentLETTR_CREATE_AUDIENCE_SEGMENTAcciónCreate a dynamic audience segment whose condition groups are ANDed while conditions inside each group are ORed.
LETTR_CREATE_AUDIENCE_SEGMENTAcciónCreate a dynamic audience segment whose condition groups are ANDed while conditions inside each group are ORed.
Parámetros de entrada
namestringObligatorioSegment name.
list_idstringuuidOptional team-owned audience list restriction. Omit or pass null to evaluate contacts across all lists.
conditionsobjectObligatorioDynamic segment definition using ANDed groups of ORed conditions.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Audience TopicLETTR_CREATE_AUDIENCE_TOPICAcciónCreate a public or private subscription topic with an immutable opt-in or opt-out default.
LETTR_CREATE_AUDIENCE_TOPICAcciónCreate a public or private subscription topic with an immutable opt-in or opt-out default.
Parámetros de entrada
namestringObligatorioTopic name.
visibilitystringenumWhether the topic appears on public subscription pages.
privatepublicdescriptionstringOptional explanation shown for the topic.
default_subscriptionstringenumImmutable default for newly created contacts: opt_in requires explicit subscription; opt_out subscribes contacts by default.
opt_inopt_out
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create DomainLETTR_CREATE_DOMAINAcciónRegister a sending domain and return the DNS configuration needed to verify it.
LETTR_CREATE_DOMAINAcciónRegister a sending domain and return the DNS configuration needed to verify it.
Parámetros de entrada
domainstringObligatorioRoot or subdomain to register as a sending domain.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create TemplateLETTR_CREATE_TEMPLATEAcciónCreate and publish an email template from either custom HTML or Topol editor JSON, extracting its merge tags.
LETTR_CREATE_TEMPLATEAcciónCreate and publish an email template from either custom HTML or Topol editor JSON, extracting its merge tags.
Parámetros de entrada
htmlstringCustom HTML content; provide exactly one of html or editor_json.
namestringObligatorioTemplate name.
folder_idintegerDestination folder; defaults to the project's first folder.
project_idintegerDestination project; defaults to the team's default project.
editor_jsonstringTopol editor JSON string; provide exactly one of editor_json or html.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create WebhookLETTR_CREATE_WEBHOOKAcciónCreate an active event webhook using no authentication, HTTP Basic credentials, or OAuth 2 client credentials.
LETTR_CREATE_WEBHOOKAcciónCreate an active event webhook using no authentication, HTTP Basic credentials, or OAuth 2 client credentials.
Parámetros de entrada
urlstringObligatoriouriPublic HTTPS callback URL where Lettr sends webhook events.
namestringObligatorioHuman-readable webhook name.
eventsstring[]Canonical fully-prefixed event names; required when events_mode is selected.
auth_typestringObligatorioenumAuthentication Lettr uses when calling the webhook.
nonebasicoauth2events_modestringObligatorioenumReceive all event types or only the event types listed in events.
allselectedauth_passwordstringBasic-auth password; required when auth_type is basic.
auth_usernamestringBasic-auth username; required when auth_type is basic.
oauth_client_idstringOAuth 2 client ID; required when auth_type is oauth2.
oauth_token_urlstringuriHTTPS OAuth 2 token URL; required when auth_type is oauth2.
oauth_client_secretstringOAuth 2 client secret; required when auth_type is oauth2.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Audience ContactLETTR_DELETE_AUDIENCE_CONTACTAcciónPermanently delete one audience contact and its associated memberships.
LETTR_DELETE_AUDIENCE_CONTACTAcciónPermanently delete one audience contact and its associated memberships.
Parámetros de entrada
contact_idstringObligatoriouuidContact ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Audience ListsLETTR_DELETE_AUDIENCE_LISTSAcciónPermanently delete between 1 and 50 audience lists in one request.
LETTR_DELETE_AUDIENCE_LISTSAcciónPermanently delete between 1 and 50 audience lists in one request.
Parámetros de entrada
list_idsstring[]ObligatorioIDs of 1-50 audience lists to permanently delete; every list must belong to the connected team.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Audience PropertyLETTR_DELETE_AUDIENCE_PROPERTYAcciónPermanently delete a custom contact-property definition.
LETTR_DELETE_AUDIENCE_PROPERTYAcciónPermanently delete a custom contact-property definition.
Parámetros de entrada
property_idstringObligatoriouuidProperty ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Audience SegmentLETTR_DELETE_AUDIENCE_SEGMENTAcciónPermanently delete one dynamic audience segment.
LETTR_DELETE_AUDIENCE_SEGMENTAcciónPermanently delete one dynamic audience segment.
Parámetros de entrada
segment_idstringObligatoriouuidSegment ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Audience TopicLETTR_DELETE_AUDIENCE_TOPICAcciónPermanently delete one audience subscription topic.
LETTR_DELETE_AUDIENCE_TOPICAcciónPermanently delete one audience subscription topic.
Parámetros de entrada
topic_idstringObligatoriouuidTopic ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete DomainLETTR_DELETE_DOMAINAcciónPermanently remove a sending domain from Lettr and SparkPost so it can no longer send email.
LETTR_DELETE_DOMAINAcciónPermanently remove a sending domain from Lettr and SparkPost so it can no longer send email.
Parámetros de entrada
domainstringObligatorioRegistered domain to permanently remove.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete TemplateLETTR_DELETE_TEMPLATEAcciónPermanently delete an email template and all of its versions.
LETTR_DELETE_TEMPLATEAcciónPermanently delete an email template and all of its versions.
Parámetros de entrada
project_idintegerProject containing the template; defaults to the team's default project.
template_slugstringObligatorioTemplate slug to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete WebhookLETTR_DELETE_WEBHOOKAcciónPermanently remove a webhook so Lettr stops delivering events to it.
LETTR_DELETE_WEBHOOKAcciónPermanently remove a webhook so Lettr stops delivering events to it.
Parámetros de entrada
webhook_idstringObligatorioWebhook ID to permanently remove.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Detach Contacts from ListsLETTR_DETACH_CONTACTS_FROM_LISTSAcciónDetach every combination of 1-1000 contacts and 1-50 audience lists, reporting removed and absent memberships.
LETTR_DETACH_CONTACTS_FROM_LISTSAcciónDetach every combination of 1-1000 contacts and 1-50 audience lists, reporting removed and absent memberships.
Parámetros de entrada
list_idsstring[]ObligatorioIDs of 1-50 team-owned audience lists. Every contact in contact_ids is detached from every list.
contact_idsstring[]ObligatorioIDs of 1-1000 team-owned contacts to detach. Every contact is detached from every list in list_ids.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Audience ContactLETTR_GET_AUDIENCE_CONTACTAcciónRetrieve one contact's email, status, custom properties, list memberships, and topic subscriptions by ID.
LETTR_GET_AUDIENCE_CONTACTAcciónRetrieve one contact's email, status, custom properties, list memberships, and topic subscriptions by ID.
Parámetros de entrada
contact_idstringObligatoriouuidContact ID returned by CREATE_AUDIENCE_CONTACT or LIST_AUDIENCE_CONTACTS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Audience ListLETTR_GET_AUDIENCE_LISTAcciónRetrieve one audience list and its current contact count by ID.
LETTR_GET_AUDIENCE_LISTAcciónRetrieve one audience list and its current contact count by ID.
Parámetros de entrada
list_idstringObligatoriouuidAudience list ID returned by CREATE_AUDIENCE_LIST or LIST_AUDIENCE_LISTS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Audience PropertyLETTR_GET_AUDIENCE_PROPERTYAcciónRetrieve one custom contact-property definition and its fallback value.
LETTR_GET_AUDIENCE_PROPERTYAcciónRetrieve one custom contact-property definition and its fallback value.
Parámetros de entrada
property_idstringObligatoriouuidProperty ID returned by CREATE_AUDIENCE_PROPERTY or LIST_AUDIENCE_PROPERTIES.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Audience SegmentLETTR_GET_AUDIENCE_SEGMENTAcciónRetrieve one dynamic segment's list restriction, complete AND-of-OR condition definition, and cached contact count.
LETTR_GET_AUDIENCE_SEGMENTAcciónRetrieve one dynamic segment's list restriction, complete AND-of-OR condition definition, and cached contact count.
Parámetros de entrada
segment_idstringObligatoriouuidSegment ID returned by CREATE_AUDIENCE_SEGMENT or LIST_AUDIENCE_SEGMENTS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Audience TopicLETTR_GET_AUDIENCE_TOPICAcciónRetrieve one subscription topic's defaults, visibility, and current contact count.
LETTR_GET_AUDIENCE_TOPICAcciónRetrieve one subscription topic's defaults, visibility, and current contact count.
Parámetros de entrada
topic_idstringObligatoriouuidTopic ID returned by CREATE_AUDIENCE_TOPIC or LIST_AUDIENCE_TOPICS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CampaignLETTR_GET_CAMPAIGNAcciónRetrieve one campaign's name, subject, sender and reply-to configuration, schedule, rendered HTML, lifecycle state, recipient counts, and engagement statistics. The campaign's audience definition is not returned.
LETTR_GET_CAMPAIGNAcciónRetrieve one campaign's name, subject, sender and reply-to configuration, schedule, rendered HTML, lifecycle state, recipient counts, and engagement statistics. The campaign's audience definition is not returned.
Parámetros de entrada
campaign_idstringObligatoriouuidCampaign ID returned by LIST_CAMPAIGNS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get DomainLETTR_GET_DOMAINAcciónRetrieve one sending domain's send readiness, DNS records, provider detection, and verification status.
LETTR_GET_DOMAINAcciónRetrieve one sending domain's send readiness, DNS records, provider detection, and verification status.
Parámetros de entrada
domainstringObligatorioRegistered sending domain name.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get EmailLETTR_GET_EMAILAcciónRetrieve a sent email's delivery state, recipients, schedule metadata, and events by request ID. The configurable event date range defaults to the last 10 days, not the email's complete event history.
LETTR_GET_EMAILAcciónRetrieve a sent email's delivery state, recipients, schedule metadata, and events by request ID. The configurable event date range defaults to the last 10 days, not the email's complete event history.
Parámetros de entrada
to_datestringdateEnd of the event date range; defaults upstream to now.
from_datestringdateStart of the event date range; defaults upstream to 10 days ago.
request_idstringObligatorioRequest ID returned by SEND_EMAIL.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Scheduled EmailLETTR_GET_SCHEDULED_EMAILAcciónRetrieve a scheduled email's current state and events by transmission ID, including after it has been processed.
LETTR_GET_SCHEDULED_EMAILAcciónRetrieve a scheduled email's current state and events by transmission ID, including after it has been processed.
Parámetros de entrada
transmission_idstringObligatorioTransmission ID returned by SCHEDULE_EMAIL.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get TemplateLETTR_GET_TEMPLATEAcciónRetrieve an email template's metadata, active HTML or editor JSON content, and version counts by slug.
LETTR_GET_TEMPLATEAcciónRetrieve an email template's metadata, active HTML or editor JSON content, and version counts by slug.
Parámetros de entrada
project_idintegerProject containing the template; defaults to the team's default project.
template_slugstringObligatorioTemplate slug returned by CREATE_TEMPLATE or LIST_TEMPLATES.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Template Merge TagsLETTR_GET_TEMPLATE_MERGE_TAGSAcciónReturn required and optional merge tags for a template's active or specified version before sending with substitution data.
LETTR_GET_TEMPLATE_MERGE_TAGSAcciónReturn required and optional merge tags for a template's active or specified version before sending with substitution data.
Parámetros de entrada
versionintegerTemplate version; defaults to the active version.
project_idintegerProject containing the template; defaults to the team's default project.
template_slugstringObligatorioTemplate slug whose variables should be inspected.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get WebhookLETTR_GET_WEBHOOKAcciónRetrieve one webhook's target, enabled state, event selection, authentication mode, and latest delivery status.
LETTR_GET_WEBHOOKAcciónRetrieve one webhook's target, enabled state, event selection, authentication mode, and latest delivery status.
Parámetros de entrada
webhook_idstringObligatorioWebhook ID returned by CREATE_WEBHOOK or LIST_WEBHOOKS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Audience ContactsLETTR_LIST_AUDIENCE_CONTACTSAcciónReturn one cursor-controlled page of contacts, optionally filtered by search text, status, list, or segment.
LETTR_LIST_AUDIENCE_CONTACTSAcciónReturn one cursor-controlled page of contacts, optionally filtered by search text, status, list, or segment.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
searchstringSearch text matched against the contact's email address or name.
statusstringenumOnly return contacts with this subscription or delivery status.
subscribedunsubscribedbouncedcomplainedunverifiedlist_idstringuuidOnly return contacts attached to this team-owned audience list UUID.
per_pageintegerMaximum contacts to return in this page (1-100).
segment_idstringuuidOnly return contacts matching this team-owned audience segment UUID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Audience ListsLETTR_LIST_AUDIENCE_LISTSAcciónReturn one cursor-controlled page of audience lists with each list's contact count.
LETTR_LIST_AUDIENCE_LISTSAcciónReturn one cursor-controlled page of audience lists with each list's contact count.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
per_pageintegerMaximum audience lists to return in this page (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Audience PropertiesLETTR_LIST_AUDIENCE_PROPERTIESAcciónReturn one cursor-controlled page of custom contact-property definitions and fallback values.
LETTR_LIST_AUDIENCE_PROPERTIESAcciónReturn one cursor-controlled page of custom contact-property definitions and fallback values.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
per_pageintegerMaximum property definitions to return in this page (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Audience SegmentsLETTR_LIST_AUDIENCE_SEGMENTSAcciónReturn one cursor-controlled page of dynamic audience segments, including their complete AND-of-OR condition definitions, optionally filtered by list.
LETTR_LIST_AUDIENCE_SEGMENTSAcciónReturn one cursor-controlled page of dynamic audience segments, including their complete AND-of-OR condition definitions, optionally filtered by list.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
list_idstringuuidOnly return segments restricted to this team-owned audience list UUID.
per_pageintegerMaximum segments to return in this page (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Audience TopicsLETTR_LIST_AUDIENCE_TOPICSAcciónReturn one cursor-controlled page of subscription topics with defaults, visibility, and contact counts.
LETTR_LIST_AUDIENCE_TOPICSAcciónReturn one cursor-controlled page of subscription topics with defaults, visibility, and contact counts.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
per_pageintegerMaximum topics to return in this page (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Campaign EventsLETTR_LIST_CAMPAIGN_EVENTSAcciónReturn one cursor-controlled page of a campaign's delivery and engagement events, with event, recipient, and time filters. An empty items page can still have a next_cursor; continue until next_cursor is null.
LETTR_LIST_CAMPAIGN_EVENTSAcciónReturn one cursor-controlled page of a campaign's delivery and engagement events, with event, recipient, and time filters. An empty items page can still have a next_cursor; continue until next_cursor is null.
Parámetros de entrada
emailstringemailOnly return events for this recipient email address.
limitintegerMaximum campaign events to return in this page (1-100).
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
end_datestringInclusive ISO 8601 upper bound. A date-only value includes the entire UTC day.
event_typestringenumOnly return events of this type.
injectiondeliverybouncespam_complaintopenclicklist_unsubscribestart_datestringInclusive ISO 8601 lower bound. A date-only value means the start of that UTC day.
campaign_idstringObligatoriouuidCampaign whose events should be returned.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CampaignsLETTR_LIST_CAMPAIGNSAcciónReturn one cursor-controlled page of campaigns with complete delivery and engagement statistics, optionally filtered by lifecycle status.
LETTR_LIST_CAMPAIGNSAcciónReturn one cursor-controlled page of campaigns with complete delivery and engagement statistics, optionally filtered by lifecycle status.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
statusstringenumOnly return campaigns in this lifecycle state.
draftscheduledpreparingin_reviewsendingsentfailedper_pageintegerMaximum campaigns to return in this page (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DomainsLETTR_LIST_DOMAINSAcciónReturn all sending domains with approval, DNS verification, and send-readiness status.
LETTR_LIST_DOMAINSAcciónReturn all sending domains with approval, DNS verification, and send-readiness status.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Email EventsLETTR_LIST_EMAIL_EVENTSAcciónReturn one cursor-controlled page of delivery and engagement events across sent emails, with event, recipient, transmission, bounce, and date filters.
LETTR_LIST_EMAIL_EVENTSAcciónReturn one cursor-controlled page of delivery and engagement events across sent emails, with event, recipient, transmission, bounce, and date filters.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
to_datestringEnd of the ISO 8601 date range; defaults upstream to now.
per_pageintegerMaximum events to return in this page (1-100).
from_datestringStart of the ISO 8601 date range; defaults upstream to 10 days ago.
recipientsstring[]Recipient email addresses to include.
event_typesstring[]Event types to include.
bounce_classesinteger[]Bounce classification codes to include.
transmission_idstringOnly include events for this email request or transmission ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Sent EmailsLETTR_LIST_EMAILSAcciónReturn one cursor-controlled page of sent emails, optionally filtered by recipient and date range.
LETTR_LIST_EMAILSAcciónReturn one cursor-controlled page of sent emails, optionally filtered by recipient and date range.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
to_datestringInclude emails sent on or before this ISO 8601 date.
per_pageintegerMaximum sent-email records to return in this page (1-100).
from_datestringInclude emails sent on or after this ISO 8601 date; defaults upstream to 10 days ago.
recipientstringOnly include emails sent to this recipient email address.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ProjectsLETTR_LIST_PROJECTSAcciónReturn one cursor-controlled page of Lettr projects and their IDs for use with template operations.
LETTR_LIST_PROJECTSAcciónReturn one cursor-controlled page of Lettr projects and their IDs for use with template operations.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
per_pageintegerMaximum projects to return in this page (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List TemplatesLETTR_LIST_TEMPLATESAcciónReturn one cursor-controlled page of email templates for a project or the team's default project.
LETTR_LIST_TEMPLATESAcciónReturn one cursor-controlled page of email templates for a project or the team's default project.
Parámetros de entrada
cursorstringPass the previous response's next_cursor to fetch the next page; omit for the first page.
per_pageintegerMaximum templates to return in this page (1-100).
project_idintegerProject to list; defaults to the team's default project.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List WebhooksLETTR_LIST_WEBHOOKSAcciónReturn all event webhooks with target, enabled state, event selection, authentication mode, and latest delivery status.
LETTR_LIST_WEBHOOKSAcciónReturn all event webhooks with target, enabled state, event selection, authentication mode, and latest delivery status.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Publish Template VersionLETTR_PUBLISH_TEMPLATE_VERSIONAcciónCreate and activate a new version of an existing email template from exactly one of HTML or Topol editor JSON, optionally renaming the template atomically.
LETTR_PUBLISH_TEMPLATE_VERSIONAcciónCreate and activate a new version of an existing email template from exactly one of HTML or Topol editor JSON, optionally renaming the template atomically.
Parámetros de entrada
htmlstringHTML content for the new active version; provide exactly one content format.
namestringOptional new template name applied atomically with the published version.
project_idintegerProject containing the template; defaults to the team's default project.
editor_jsonstringTopol editor JSON for the new active version; provide exactly one content format.
template_slugstringObligatorioTemplate slug to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Schedule CampaignLETTR_SCHEDULE_CAMPAIGNAcciónSchedule a campaign for future delivery or reschedule it. The campaign dispatches automatically at that time unless it is unscheduled first.
LETTR_SCHEDULE_CAMPAIGNAcciónSchedule a campaign for future delivery or reschedule it. The campaign dispatches automatically at that time unless it is unscheduled first.
Parámetros de entrada
campaign_idstringObligatoriouuidCampaign ID to schedule or reschedule.
scheduled_atstringObligatoriodate-timeFuture delivery time in ISO 8601 format. Include a timezone offset or Z; Lettr interprets a value without an offset as UTC.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Schedule EmailLETTR_SCHEDULE_EMAILAcciónCreate a transactional email scheduled 5 minutes to 3 days in the future; it remains cancellable until processed.
LETTR_SCHEDULE_EMAILAcciónCreate a transactional email scheduled 5 minutes to 3 days in the future; it remains cancellable until processed.
Parámetros de entrada
ccstring[]Carbon-copy recipient email addresses.
tostring[]ObligatorioRecipient email addresses, up to 50.
bccstring[]Blind-carbon-copy recipient email addresses.
tagstringTracking and analytics tag.
htmlstringHTML body; provide html, text, or template_slug.
textstringPlain-text body; provide html, text, or template_slug.
headersobjectUp to 10 custom email headers. Envelope, Lettr-managed, X-MSYS-API, List-Unsubscribe, and List-Unsubscribe-Post headers are forbidden.
optionsobjectEmail tracking, rendering, and delivery options.
subjectstringSubject line; required unless template_slug is provided.
amp_htmlstringOptional AMP HTML body.
metadataobjectCustom string metadata for tracking.
reply_tostringemailReply-to email address.
from_namestringSender display name.
from_emailstringObligatorioemailVerified sender email address.
project_idintegerProject containing template_slug; defaults to the team's default project.
attachmentsobject[]File attachments with filename, MIME type, and base64 data.
scheduled_atstringObligatoriodate-timeSend time in ISO 8601 format with a timezone offset, at least 5 minutes and at most 3 days in the future. Any offset is accepted and converted to UTC before it is sent to Lettr.
reply_to_namestringReply-to display name.
template_slugstringTemplate whose active HTML and default subject should be used.
template_versionintegerSpecific template version; defaults to the active version.
substitution_dataobjectValues for template substitution in email content.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send CampaignLETTR_SEND_CAMPAIGNAcciónImmediately and irreversibly start sending a sendable draft campaign to its resolved audience. Only call after confirming the campaign's audience, subject, sender email, and content. A successful 202 response transitions the campaign asynchronously to preparing and the external send cannot be undone.
LETTR_SEND_CAMPAIGNAcciónImmediately and irreversibly start sending a sendable draft campaign to its resolved audience. Only call after confirming the campaign's audience, subject, sender email, and content. A successful 202 response transitions the campaign asynchronously to preparing and the external send cannot be undone.
Parámetros de entrada
campaign_idstringObligatoriouuidDraft campaign ID to send now. Before calling, verify its audience, subject, sender email, and content because a successful request starts an irreversible external send.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send EmailLETTR_SEND_EMAILAcciónImmediately queue a transactional email to up to 50 recipients using inline content or a Lettr template. This is an irreversible external send.
LETTR_SEND_EMAILAcciónImmediately queue a transactional email to up to 50 recipients using inline content or a Lettr template. This is an irreversible external send.
Parámetros de entrada
ccstring[]Carbon-copy recipient email addresses.
tostring[]ObligatorioRecipient email addresses, up to 50.
bccstring[]Blind-carbon-copy recipient email addresses.
tagstringTracking tag, up to 64 characters.
htmlstringHTML body; provide html, text, or template_slug.
textstringPlain-text body; provide html, text, or template_slug.
headersobjectUp to 10 custom email headers. Envelope headers and Lettr-managed headers cannot be set.
optionsobjectTracking, transactional, CSS, and substitution options.
subjectstringSubject line; required unless template_slug supplies one.
amp_htmlstringOptional AMP HTML body.
metadataobjectCustom string metadata for tracking.
reply_tostringemailReply-to email address.
from_namestringSender display name.
from_emailstringObligatorioemailVerified sender email address.
project_idintegerProject containing template_slug; defaults to the team's default project.
attachmentsobject[]Attachments containing a filename, MIME type, and base64 data.
reply_to_namestringReply-to display name.
template_slugstringTemplate whose active HTML and default subject should be used.
template_versionintegerSpecific template version; defaults to the active version.
substitution_dataobjectValues for template merge tags.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Unschedule CampaignLETTR_UNSCHEDULE_CAMPAIGNAcciónCancel a scheduled campaign send and return the campaign to draft. The campaign must still be scheduled; this cannot stop one already preparing or sending.
LETTR_UNSCHEDULE_CAMPAIGNAcciónCancel a scheduled campaign send and return the campaign to draft. The campaign must still be scheduled; this cannot stop one already preparing or sending.
Parámetros de entrada
campaign_idstringObligatoriouuidCurrently scheduled campaign ID to return to draft.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Audience ContactLETTR_UPDATE_AUDIENCE_CONTACTAcciónChange a contact's email, subscribed or unsubscribed status, or selected custom property values. Provide at least one of email, status, or properties; a null value inside properties removes that property.
LETTR_UPDATE_AUDIENCE_CONTACTAcciónChange a contact's email, subscribed or unsubscribed status, or selected custom property values. Provide at least one of email, status, or properties; a null value inside properties removes that property.
Parámetros de entrada
emailstringemailNew email address, which must remain unique within the team.
statusstringenumNew subscription status. Bounced, complained, and unverified cannot be assigned with this action.
subscribedunsubscribedcontact_idstringObligatoriouuidContact ID to update.
propertiesobjectCustom property values to update by team-defined property name. Each string is at most 1000 characters; set a value to null to remove that property.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Audience ListLETTR_UPDATE_AUDIENCE_LISTAcciónRename an audience list while preserving its contacts.
LETTR_UPDATE_AUDIENCE_LISTAcciónRename an audience list while preserving its contacts.
Parámetros de entrada
namestringObligatorioNew list name, which must remain unique within the team.
list_idstringObligatoriouuidAudience list ID to rename.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Audience PropertyLETTR_UPDATE_AUDIENCE_PROPERTYAcciónSet or clear a custom contact property's fallback value. Its name and data type cannot be changed.
LETTR_UPDATE_AUDIENCE_PROPERTYAcciónSet or clear a custom contact property's fallback value. Its name and data type cannot be changed.
Parámetros de entrada
property_idstringObligatoriouuidProperty ID to update.
fallback_valueanyObligatorioNew fallback value, or null to clear the fallback.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Audience SegmentLETTR_UPDATE_AUDIENCE_SEGMENTAcciónChange a dynamic segment's name, optional audience-list restriction, or complete AND-of-OR condition definition. Provide at least one of these mutable fields; setting list_id to null removes the list restriction.
LETTR_UPDATE_AUDIENCE_SEGMENTAcciónChange a dynamic segment's name, optional audience-list restriction, or complete AND-of-OR condition definition. Provide at least one of these mutable fields; setting list_id to null removes the list restriction.
Parámetros de entrada
namestringNew segment name.
list_idstringuuidNew team-owned list restriction, or null to evaluate contacts across all lists.
conditionsobjectComplete replacement condition definition.
segment_idstringObligatoriouuidSegment ID to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Audience TopicLETTR_UPDATE_AUDIENCE_TOPICAcciónChange a subscription topic's name, description, or public/private visibility. Provide at least one of these mutable fields; setting description to null clears it. Its default subscription behavior cannot be changed.
LETTR_UPDATE_AUDIENCE_TOPICAcciónChange a subscription topic's name, description, or public/private visibility. Provide at least one of these mutable fields; setting description to null clears it. Its default subscription behavior cannot be changed.
Parámetros de entrada
namestringNew topic name.
topic_idstringObligatoriouuidTopic ID to update.
visibilitystringenumWhether the topic appears on public subscription pages.
privatepublicdescriptionstringNew topic description; explicitly set this to null to clear it.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update TemplateLETTR_UPDATE_TEMPLATEAcciónRename an email template's metadata without publishing a new version.
LETTR_UPDATE_TEMPLATEAcciónRename an email template's metadata without publishing a new version.
Parámetros de entrada
namestringObligatorioNew template name.
project_idintegerProject containing the template; defaults to the team's default project.
template_slugstringObligatorioTemplate slug to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update WebhookLETTR_UPDATE_WEBHOOKAcciónPartially update a webhook's name, callback URL, authentication, selected events, or active state. Provide at least one field to update.
LETTR_UPDATE_WEBHOOKAcciónPartially update a webhook's name, callback URL, authentication, selected events, or active state. Provide at least one field to update.
Parámetros de entrada
urlstringuriNew public HTTPS callback URL.
namestringNew webhook name.
activebooleanWhether Lettr should deliver events to this webhook.
eventsstring[]Replacement list of canonical fully-prefixed event names.
auth_typestringenumNew callback authentication mode. Setting basic requires auth_username and auth_password; setting oauth2 requires oauth_token_url, oauth_client_id, and oauth_client_secret.
nonebasicoauth2webhook_idstringObligatorioWebhook ID to update.
auth_passwordstringReplacement Basic-auth password; required when auth_type is basic. Without auth_type, rotates credentials for an existing Basic webhook. This secret is sent to Lettr but never returned by this tool.
auth_usernamestringReplacement Basic-auth username; required when auth_type is basic. Without auth_type, rotates credentials for an existing Basic webhook.
oauth_client_idstringReplacement OAuth 2 client ID; required when auth_type is oauth2. Without auth_type, rotates credentials for an existing OAuth 2 webhook.
oauth_token_urlstringuriReplacement HTTPS OAuth 2 token endpoint URL; required when auth_type is oauth2. Without auth_type, rotates credentials for an existing OAuth 2 webhook.
oauth_client_secretstringReplacement OAuth 2 client secret; required when auth_type is oauth2. Without auth_type, rotates credentials for an existing OAuth 2 webhook. This secret is sent to Lettr but never returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Verify DomainLETTR_VERIFY_DOMAINAcciónRun Lettr's DNS verification for a registered domain and return DKIM, CNAME, DMARC, SPF, and ownership results.
LETTR_VERIFY_DOMAINAcciónRun Lettr's DNS verification for a registered domain and return DKIM, CNAME, DMARC, SPF, and ownership results.
Parámetros de entrada
domainstringObligatorioRegistered domain whose current DNS records should be checked.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not