3520 linhas
86 KiB
TypeScript
3520 linhas
86 KiB
TypeScript
// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
|
|
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const emailCenterOperations: INodeProperties[] = [{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "Send an email",
|
|
"value": "messagesCreate",
|
|
"description": "Needs `email_center:write`. Each recipient (to, cc and bcc, up to 50) is one email and one credit. Addresses on the suppression list are removed and listed in `suppressed`; if none is left, the API...",
|
|
"action": "Send an email",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/messages",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List emails",
|
|
"value": "messagesList",
|
|
"description": "Needs `email_center:read`. Newest first, without the content (see GET /v1/email/messages/{id}).",
|
|
"action": "List emails",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/messages"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Send emails in a batch",
|
|
"value": "messagesBatch",
|
|
"description": "Needs `email_center:write`. No limit on the number of messages, only on the request size (8 MB). Fields outside `messages` (from, subject, html, text, template_id, reply_to, send_at) apply to all;...",
|
|
"action": "Send emails in a batch",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/messages/batch",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See an email",
|
|
"value": "messagesGet",
|
|
"description": "Needs `email_center:read`. With the events of each recipient and the content (kept for 30 days by default; then `html` and `text` are null).",
|
|
"action": "See an email",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/messages/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Cancel a scheduled email",
|
|
"value": "messagesCancel",
|
|
"description": "Needs `email_center:write`. Only `scheduled` emails that have not gone out yet; credits already taken go back (`credits_returned`). Otherwise 409 `not_cancellable`.",
|
|
"action": "Cancel a scheduled email",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/messages/{{encodeURIComponent(String($parameter[\"id\"]))}}/cancel",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See the email balance",
|
|
"value": "balanceGet",
|
|
"description": "Needs `email_center:read`. The balance of emails bought, plus the two monthly limits of the account, the different recipients and the total emails, each with what is used, what is left and the day...",
|
|
"action": "See the email balance",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/balance"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See email statistics",
|
|
"value": "statsGet",
|
|
"description": "Needs `email_center:read`. By status and by day. Delivered, bounced and complained count recipients; the rates are over the recipients. Default: the last 30 days; at most 366.",
|
|
"action": "See email statistics",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/stats"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List sender domains",
|
|
"value": "domainsList",
|
|
"description": "Needs `email_center:read`. In alphabetical order.",
|
|
"action": "List sender domains",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/domains"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Add a sender domain",
|
|
"value": "domainsCreate",
|
|
"description": "Needs `email_center:write`. Add the records of `dns_records` to the DNS of the domain: one DKIM TXT record with our key (required), SPF and DMARC (recommended) and, with MAIL FROM, one CNAME. Then...",
|
|
"action": "Add a sender domain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/domains",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See a sender domain",
|
|
"value": "domainsGet",
|
|
"description": "Needs `email_center:read`. With the DNS records to add and whether each one was found at the last check.",
|
|
"action": "See a sender domain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete a sender domain",
|
|
"value": "domainsDelete",
|
|
"description": "Needs `email_center:write`. The domain can no longer send. Emails already sent stay in the log.",
|
|
"action": "Delete a sender domain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/email/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Verify a sender domain",
|
|
"value": "domainsVerify",
|
|
"description": "Needs `email_center:write`. Checks the DKIM records now and returns the new status. With a sandbox key the result is not saved.",
|
|
"action": "Verify a sender domain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/verify"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Set the MAIL FROM subdomain",
|
|
"value": "domainsMailFrom",
|
|
"description": "Needs `email_center:write`. Optional: a subdomain of yours for the return path (for example `bounce`), so SPF aligns with your domain for DMARC. An empty value goes back to ours. Add the MX and TXT...",
|
|
"action": "Set the MAIL FROM subdomain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/email/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/mail-from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List email templates",
|
|
"value": "templatesList",
|
|
"description": "Needs `email_center:read`. By name.",
|
|
"action": "List email templates",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/templates"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Create an email template",
|
|
"value": "templatesCreate",
|
|
"description": "Needs `email_center:write`. Subject and html or text, with {{name}} placeholders filled from `variables` when sending.",
|
|
"action": "Create an email template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/templates",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See an email template",
|
|
"value": "templatesGet",
|
|
"description": "Needs `email_center:read`. With the variables it uses.",
|
|
"action": "See an email template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/templates/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Change an email template",
|
|
"value": "templatesUpdate",
|
|
"description": "Needs `email_center:write`. Only the fields sent change.",
|
|
"action": "Change an email template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PATCH",
|
|
"url": "=/v1/email/templates/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete an email template",
|
|
"value": "templatesDelete",
|
|
"description": "Needs `email_center:write`. Emails already sent are not affected.",
|
|
"action": "Delete an email template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/email/templates/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List suppressed addresses",
|
|
"value": "suppressionsList",
|
|
"description": "Needs `email_center:read`. Addresses that never receive emails from this account: permanent bounces and complaints enter on their own; you can add others.",
|
|
"action": "List suppressed addresses",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/suppressions"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Suppress an address",
|
|
"value": "suppressionsCreate",
|
|
"description": "Needs `email_center:write`. Emails to it are removed before sending and never charged.",
|
|
"action": "Suppress an address",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/suppressions",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Remove a suppressed address",
|
|
"value": "suppressionsDelete",
|
|
"description": "Needs `email_center:write`. The address goes in the path, URL-encoded (`ana%40example.org`).",
|
|
"action": "Remove a suppressed address",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/email/suppressions/{{encodeURIComponent(String($parameter[\"email\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get the email webhook",
|
|
"value": "webhookGet",
|
|
"description": "Needs `email_center:read`. The address, the events and the last delivery; never the secret. We POST `{\"event\": \"email.delivered\", \"created_at\", \"data\": {\"id\", \"event_id\", \"recipient\", \"detail\",...",
|
|
"action": "Get the email webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/webhook"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Save the email webhook",
|
|
"value": "webhookSet",
|
|
"description": "Needs `email_center:write`. The `secret` is shown only when the webhook is created or with `rotate_secret: true`. We POST `{\"event\": \"email.delivered\", \"created_at\", \"data\": {\"id\", \"event_id\",...",
|
|
"action": "Save the email webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/email/webhook"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete the email webhook",
|
|
"value": "webhookDelete",
|
|
"description": "Needs `email_center:write`. Pending deliveries are cancelled.",
|
|
"action": "Delete the email webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/email/webhook"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Test the email webhook",
|
|
"value": "webhookTest",
|
|
"description": "Needs `email_center:write`. Sends a signed `webhook.test` event to the saved address now and returns what your server answered.",
|
|
"action": "Test the email webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/webhook/test"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List campaigns",
|
|
"value": "campaignsList",
|
|
"description": "Needs `email_center:read`. Newest first, without the blocks.",
|
|
"action": "List campaigns",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/campaigns"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Create a campaign",
|
|
"value": "campaignsCreate",
|
|
"description": "Needs `email_center:write`. Creates a draft. Send `blocks`, or `template` for a ready template. Variables: {{first_name}}, {{name}}, {{company}}, {{email}}. With a sandbox key nothing is saved.",
|
|
"action": "Create a campaign",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/campaigns",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Generate a campaign with AI",
|
|
"value": "campaignsGenerate",
|
|
"description": "Needs `email_center:write`. Describe what you want to send; the answer has a subject, a preheader and blocks, which you can then send to POST /v1/email/campaigns. Nothing is saved. 503...",
|
|
"action": "Generate a campaign with AI",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/campaigns/generate"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See a campaign",
|
|
"value": "campaignsGet",
|
|
"description": "Needs `email_center:read`. With the blocks and the audience.",
|
|
"action": "See a campaign",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Change a campaign",
|
|
"value": "campaignsUpdate",
|
|
"description": "Needs `email_center:write`. Only drafts and automation emails; only the fields sent change.",
|
|
"action": "Change a campaign",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PATCH",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete a campaign",
|
|
"value": "campaignsDelete",
|
|
"description": "Needs `email_center:write`. Only drafts, and automation emails that no longer belong to any automation. An email that is a step of an automation is refused with `409 campaign_belongs_to_automation`,...",
|
|
"action": "Delete a campaign",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Check a campaign for spam",
|
|
"value": "campaignsSpamCheck",
|
|
"description": "Needs `email_center:read`. Simple rules (subject in capitals, spam words, little text, only images, shortened links, sender not verified). From `blocks_sending_at` points the campaign cannot be sent.",
|
|
"action": "Check a campaign for spam",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}/spam-check"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Send a campaign now",
|
|
"value": "campaignsSend",
|
|
"description": "Needs `email_center:write`. Only subscribed contacts with an email address, not on the suppression list, receive it; each one is one credit (taken now and returned for those that do not go out)....",
|
|
"action": "Send a campaign now",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}/send",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Schedule a campaign",
|
|
"value": "campaignsSchedule",
|
|
"description": "Needs `email_center:write`. `send_at` in ISO 8601 with the time zone, up to 30 days ahead. Only subscribed contacts with an email address, not on the suppression list, receive it; each one is one...",
|
|
"action": "Schedule a campaign",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}/schedule",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Cancel a campaign",
|
|
"value": "campaignsCancel",
|
|
"description": "Needs `email_center:write`. Scheduled or still sending: what has not gone out does not go, and its credits come back (`credits_returned`).",
|
|
"action": "Cancel a campaign",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}/cancel",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See campaign statistics",
|
|
"value": "campaignsStats",
|
|
"description": "Needs `email_center:read`. Delivered, opens (pixel), clicks (signed links), unsubscribes and bounces; rates over delivered emails. `simulated` marks example numbers from test mode.",
|
|
"action": "See campaign statistics",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}/stats"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List campaign recipients",
|
|
"value": "campaignsRecipients",
|
|
"description": "Needs `email_center:read`. What each contact did: opened, clicked, unsubscribed or bounced.",
|
|
"action": "List campaign recipients",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}/recipients"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Send a test of a campaign",
|
|
"value": "campaignsTest",
|
|
"description": "Needs `email_center:write`. One email to one address, with example variables and «[Test]» in the subject; it costs one credit, like any email.",
|
|
"action": "Send a test of a campaign",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/campaigns/{{encodeURIComponent(String($parameter[\"id\"]))}}/test",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List email contacts",
|
|
"value": "contactsList",
|
|
"description": "Needs `email_center:read`. The SMS contacts that have an email address and the email-only contacts, without repeated addresses, with the subscription status.",
|
|
"action": "List email contacts",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/contacts"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Add an email contact",
|
|
"value": "contactsCreate",
|
|
"description": "Needs `email_center:write`. If the address already belongs to an SMS contact, that contact is used and joins the groups. You confirm that the person agreed to receive your emails.",
|
|
"action": "Add an email contact",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/contacts",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See an email contact",
|
|
"value": "contactsGet",
|
|
"description": "Needs `email_center:read`. With the latest campaigns it received and what it did.",
|
|
"action": "See an email contact",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/contacts/{{encodeURIComponent(String($parameter[\"email\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Change a subscription",
|
|
"value": "contactsSubscription",
|
|
"description": "Needs `email_center:write`. `subscribed` or `unsubscribed`. Contacts who unsubscribed through the link should only be subscribed again with their consent.",
|
|
"action": "Change a subscription",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/email/contacts/{{encodeURIComponent(String($parameter[\"email\"]))}}/subscription"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List contact groups",
|
|
"value": "groupsList",
|
|
"description": "Needs `email_center:read`. The same groups as the SMS contacts, with how many have an email address.",
|
|
"action": "List contact groups",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/groups"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List subscription forms",
|
|
"value": "formsList",
|
|
"description": "Needs `email_center:read`. The subscription forms of the account, newest first, with the code to embed, the direct link and the sign-up counts. Read only: forms are created and changed in the account...",
|
|
"action": "List subscription forms",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/forms"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List the sign-ups of a form",
|
|
"value": "formsSignups",
|
|
"description": "Needs `email_center:read`. Newest first. Forms use double opt-in: a sign-up only joins the contact list after the person confirms, through the link sent by email or by SMS. Until then it is `pending`...",
|
|
"action": "List the sign-ups of a form",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/forms/{{encodeURIComponent(String($parameter[\"id\"]))}}/signups"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List automations",
|
|
"value": "automationsList",
|
|
"description": "Needs `email_center:read`. The automations of the account, newest first, each with its goal, its trigger, whether it is on and what it has sent. Automations are created and deleted in the account...",
|
|
"action": "List automations",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/automations"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get an automation",
|
|
"value": "automationsGet",
|
|
"description": "Needs `email_center:read`. The same as the list, plus the emails of the series, in the order they go out, and the three caps that always apply.",
|
|
"action": "Get an automation",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/automations/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List what an automation has done",
|
|
"value": "automationsActivity",
|
|
"description": "Needs `email_center:read`. Every email this automation sent, newest first, with who received it, which email of the series it was and what the person did with it. Nobody gets the same email of the...",
|
|
"action": "List what an automation has done",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/automations/{{encodeURIComponent(String($parameter[\"id\"]))}}/activity"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn an automation on",
|
|
"value": "automationsEnable",
|
|
"description": "Needs `email_center:write`. Before turning it on we check what the account dashboard checks: every email of the series has a subject and content, and the sender is on a verified domain. If something...",
|
|
"action": "Turn an automation on",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/automations/{{encodeURIComponent(String($parameter[\"id\"]))}}/enable",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn an automation off",
|
|
"value": "automationsDisable",
|
|
"description": "Needs `email_center:write`. It stops sending right away, and nothing is deleted: the emails of the series, the content and the history stay as they are, and you can turn it on again later. Turning...",
|
|
"action": "Turn an automation off",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/automations/{{encodeURIComponent(String($parameter[\"id\"]))}}/disable",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get the SMTP Relay status",
|
|
"value": "relayGet",
|
|
"description": "Needs `email_center:read`. The SMTP Relay lets a program that already speaks SMTP send through us without changing its code: point it at `hostname` on one of the `ports`, with an SMTP credential of...",
|
|
"action": "Get the SMTP Relay status",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/relay"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List the SMTP credentials",
|
|
"value": "relayCredentials",
|
|
"description": "Needs `email_center:read`. The SMTP credentials of the account, newest first, with their state and when each one last sent something. Read only, and the password is never in the answer. Credentials...",
|
|
"action": "List the SMTP credentials",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/relay/credentials"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Email credit prices",
|
|
"value": "creditsPrices",
|
|
"description": "Needs `email_center:read`. The price per thousand emails for each sending type, in tiers that add up (as on the pricing pages), and how many credits each email uses. Tax is added on the invoice...",
|
|
"action": "Email credit prices",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/email/credits/prices"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Buy email credits",
|
|
"value": "creditsPurchase",
|
|
"description": "Needs `billing:purchase`. Also needs `email_center:write`. Buys `quantity` emails of the sending type in `usage` (`transactional`, `marketing` or `smtp-relay`); the balance receives `credits`, the...",
|
|
"action": "Buy email credits",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/email/credits/purchase",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": "messagesCreate"
|
|
}];
|
|
|
|
export const emailCenterFields: INodeProperties[] = [
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "Sender at a verified domain (or a subdomain of it): `notifications@example.com` or `Example Ltd <notifications@example.com>`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "To",
|
|
"name": "to",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "One address, a comma-separated list or an array.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "to"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Attachments",
|
|
"name": "attachments",
|
|
"type": "json",
|
|
"default": "[]",
|
|
"description": "Base64 files; 5 MB in total by default, executables refused.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "attachments",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "BCC",
|
|
"name": "bcc",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "bcc"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "CC",
|
|
"name": "cc",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "cc"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "From Name",
|
|
"name": "from_name",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional display name.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from_name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "HTML",
|
|
"name": "html",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "HTML body. Values of {{variables}} are HTML-escaped.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "html"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Headers",
|
|
"name": "headers",
|
|
"type": "json",
|
|
"default": "{}",
|
|
"description": "Optional headers of your own, as an object of names and values: your X- headers (such as `X-Order-Id` or `X-Campaign`) and List-Unsubscribe, List-Unsubscribe-Post, List-Id, In-Reply-To, References, Precedence, Auto-Submitted, Feedback-ID,...",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "headers",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Reply To",
|
|
"name": "reply_to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Up to 5 addresses.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "reply_to"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Send At",
|
|
"name": "send_at",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional, ISO 8601 with time zone, up to 30 days ahead by default.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "send_at"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subject",
|
|
"name": "subject",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Up to 998 characters. May use {{variables}}.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subject"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Template ID",
|
|
"name": "template_id",
|
|
"type": "number",
|
|
"default": 0,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "A template of this account; empty subject, html and text come from it.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "template_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Plain text body.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Variables",
|
|
"name": "variables",
|
|
"type": "json",
|
|
"default": "{}",
|
|
"description": "Values for {{name}} placeholders, as an object.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "variables",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "From this day, YYYY-MM-DD.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Recipient",
|
|
"name": "recipient",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Only emails to this address (to, cc or bcc).",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "recipient"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Status",
|
|
"name": "status",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "One of: queued, scheduled, sending, sent, delivered, bounced, complained, failed, simulated, cancelled.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "status"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "To",
|
|
"name": "to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Up to this day, YYYY-MM-DD.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "to"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Messages",
|
|
"name": "messages",
|
|
"type": "json",
|
|
"default": "[]",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "messages",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesBatch"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesBatch"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Attachments",
|
|
"name": "attachments",
|
|
"type": "json",
|
|
"default": "[]",
|
|
"description": "Base64 files; 5 MB in total by default, executables refused.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "attachments",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "BCC",
|
|
"name": "bcc",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "bcc"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "CC",
|
|
"name": "cc",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "cc"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Sender at a verified domain (or a subdomain of it): `notifications@example.com` or `Example Ltd <notifications@example.com>`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "From Name",
|
|
"name": "from_name",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional display name.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from_name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "HTML",
|
|
"name": "html",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "HTML body. Values of {{variables}} are HTML-escaped.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "html"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Headers",
|
|
"name": "headers",
|
|
"type": "json",
|
|
"default": "{}",
|
|
"description": "Optional headers of your own, as an object of names and values: your X- headers (such as `X-Order-Id` or `X-Campaign`) and List-Unsubscribe, List-Unsubscribe-Post, List-Id, In-Reply-To, References, Precedence, Auto-Submitted, Feedback-ID,...",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "headers",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Reply To",
|
|
"name": "reply_to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Up to 5 addresses.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "reply_to"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Send At",
|
|
"name": "send_at",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional, ISO 8601 with time zone, up to 30 days ahead by default.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "send_at"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subject",
|
|
"name": "subject",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Up to 998 characters. May use {{variables}}.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subject"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Template ID",
|
|
"name": "template_id",
|
|
"type": "number",
|
|
"default": 0,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "A template of this account; empty subject, html and text come from it.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "template_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Plain text body.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "To",
|
|
"name": "to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "One address, a comma-separated list or an array.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "to"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Variables",
|
|
"name": "variables",
|
|
"type": "json",
|
|
"default": "{}",
|
|
"description": "Values for {{name}} placeholders, as an object.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "variables",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when the email was sent.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when the email was sent.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"messagesCancel"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"statsGet"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "YYYY-MM-DD.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "To",
|
|
"name": "to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "YYYY-MM-DD.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "to"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"domainsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "domain"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"domainsCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name (example.com) or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"domainsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name (example.com) or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"domainsDelete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name (example.com) or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"domainsVerify"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name (example.com) or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"domainsMailFrom"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subdomain",
|
|
"name": "subdomain",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subdomain"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"domainsMailFrom"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Name",
|
|
"name": "name",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "Up to 100 characters, unique in the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subject",
|
|
"name": "subject",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subject"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "HTML",
|
|
"name": "html",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "html"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The template `id` (the same as `template_id` when sending).",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The template `id` (the same as `template_id` when sending).",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesUpdate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "HTML",
|
|
"name": "html",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "html"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Name",
|
|
"name": "name",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Up to 100 characters, unique in the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subject",
|
|
"name": "subject",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subject"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The template `id` (the same as `template_id` when sending).",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"templatesDelete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"suppressionsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "One address.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "email"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Reason",
|
|
"name": "reason",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "bounce, complaint or manual.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "reason"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "email"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"suppressionsCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"suppressionsCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Note",
|
|
"name": "note",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "note"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The address, URL-encoded.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"suppressionsDelete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "URL",
|
|
"name": "url",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "url"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"webhookSet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"webhookSet"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Events",
|
|
"name": "events",
|
|
"type": "string",
|
|
"default": "",
|
|
"placeholder": "value1, value2",
|
|
"description": "Comma-separated.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "events",
|
|
"value": "={{ Array.isArray($value) ? $value : String($value).split(\",\").map(s => s.trim()).filter(s => s !== \"\") }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Rotate Secret",
|
|
"name": "rotate_secret",
|
|
"type": "boolean",
|
|
"default": false,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "rotate_secret"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Status",
|
|
"name": "status",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "draft, scheduled, sending, sent, cancelled or automation.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "status"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Blocks",
|
|
"name": "blocks",
|
|
"type": "json",
|
|
"default": "[]",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "blocks",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "An address at a verified domain.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "From Name",
|
|
"name": "from_name",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from_name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Name",
|
|
"name": "name",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Preheader",
|
|
"name": "preheader",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Text shown after the subject in the inbox.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "preheader"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Reply To",
|
|
"name": "reply_to",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "reply_to"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subject",
|
|
"name": "subject",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subject"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Target",
|
|
"name": "target",
|
|
"type": "json",
|
|
"default": "{}",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "target",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Template",
|
|
"name": "template",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Instead of blocks: a ready template by sector (restauracao, comercio, servicos, educacao, saude, eventos, imobiliario, tecnologia).",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "template"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Description",
|
|
"name": "description",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "10 to 1500 characters.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "description"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsGenerate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsGenerate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Sector",
|
|
"name": "sector",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "sector"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsUpdate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Blocks",
|
|
"name": "blocks",
|
|
"type": "json",
|
|
"default": "[]",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "blocks",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "An address at a verified domain.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "From Name",
|
|
"name": "from_name",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "from_name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Name",
|
|
"name": "name",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Preheader",
|
|
"name": "preheader",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Text shown after the subject in the inbox.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "preheader"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Reply To",
|
|
"name": "reply_to",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "reply_to"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subject",
|
|
"name": "subject",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subject"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Target",
|
|
"name": "target",
|
|
"type": "json",
|
|
"default": "{}",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "target",
|
|
"value": "={{ typeof $value === \"string\" ? ($value.trim() === \"\" ? undefined : JSON.parse($value)) : $value }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Template",
|
|
"name": "template",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Instead of blocks: a ready template by sector (restauracao, comercio, servicos, educacao, saude, eventos, imobiliario, tecnologia).",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "template"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsDelete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsSpamCheck"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsSend"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsSchedule"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Send At",
|
|
"name": "send_at",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "send_at"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsSchedule"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsCancel"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsStats"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsRecipients"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsRecipients"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The campaign `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsTest"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "To",
|
|
"name": "to",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "to"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"campaignsTest"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"contactsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Clicked",
|
|
"name": "clicked",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "yes or no.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "clicked"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Group",
|
|
"name": "group",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Group id.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "group"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Joined From",
|
|
"name": "joined_from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "YYYY-MM-DD.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "joined_from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Joined To",
|
|
"name": "joined_to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "YYYY-MM-DD.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "joined_to"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Opened",
|
|
"name": "opened",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "yes or no.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "opened"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Q",
|
|
"name": "q",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Search.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "q"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subscription",
|
|
"name": "subscription",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "subscribed, unsubscribed or suppressed.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "subscription"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "email"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"contactsCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"contactsCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Company",
|
|
"name": "company",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "company"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Groups",
|
|
"name": "groups",
|
|
"type": "string",
|
|
"default": "",
|
|
"placeholder": "value1, value2",
|
|
"description": "Comma-separated.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "groups",
|
|
"value": "={{ Array.isArray($value) ? $value : String($value).split(\",\").map(s => s.trim()).filter(s => s !== \"\").map(Number) }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Name",
|
|
"name": "name",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Subscription",
|
|
"name": "subscription",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "subscribed (default) or unsubscribed.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "subscription"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The address, URL-encoded.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"contactsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The address, URL-encoded.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"contactsSubscription"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Status",
|
|
"name": "status",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "status"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"contactsSubscription"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"formsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The form `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"formsSignups"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"formsSignups"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Status",
|
|
"name": "status",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "pending, confirmed or expired.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "status"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"automationsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The automation `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"automationsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The automation `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"automationsActivity"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"automationsActivity"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The automation `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"automationsEnable"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The automation `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"automationsDisable"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"relayCredentials"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Quantity",
|
|
"name": "quantity",
|
|
"type": "number",
|
|
"default": 0,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"required": true,
|
|
"description": "Number of emails.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "quantity"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"creditsPurchase"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"emailCenter"
|
|
],
|
|
"operation": [
|
|
"creditsPurchase"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Usage",
|
|
"name": "usage",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "transactional",
|
|
"value": "transactional"
|
|
},
|
|
{
|
|
"name": "marketing",
|
|
"value": "marketing"
|
|
},
|
|
{
|
|
"name": "smtp-relay",
|
|
"value": "smtp-relay"
|
|
}
|
|
],
|
|
"default": "transactional",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "usage"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
];
|