2468 lines
57 KiB
TypeScript
2468 lines
57 KiB
TypeScript
// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
|
|
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const smsOperations: INodeProperties[] = [{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "Send an SMS",
|
|
"value": "messagesCreate",
|
|
"description": "Needs `sms:write` and SMS active on the account. With a Sandbox key, or while the API is in preparation, the message is simulated: nothing is sent and no credits are used. With a Production key the...",
|
|
"action": "Send an SMS",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/messages",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List sent messages",
|
|
"value": "messagesList",
|
|
"description": "Needs `sms:read`. The messages this account sent, newest first. Account notices and verification codes are not listed, and messages simulated with a Sandbox key are not either. The number comes...",
|
|
"action": "List sent messages",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/messages"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See one SMS",
|
|
"value": "messagesGet",
|
|
"description": "Needs `sms:read`. Simulated messages can only be seen with the key that created them.",
|
|
"action": "See one SMS",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/messages/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See the SMS balance",
|
|
"value": "balanceGet",
|
|
"description": "Needs `sms:read`. The balance is real in both modes.",
|
|
"action": "See the SMS balance",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/balance"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List the SMS senders",
|
|
"value": "sendersList",
|
|
"description": "Needs `sms:read`. The free sender always comes first, with `free: true`.",
|
|
"action": "List the SMS senders",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/senders"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Request a sender",
|
|
"value": "sendersCreate",
|
|
"description": "Needs `sms:write`. Up to 11 letters, numbers and spaces, at most 30 in the account, one request per name and country. The registration fee is paid as in the account dashboard: the request is created...",
|
|
"action": "Request a sender",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/senders"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See sending statistics",
|
|
"value": "statsGet",
|
|
"description": "Needs `sms:read`. Totals and one line per day with messages. Without dates, the last 30 days; at most 366 days. Failed, cancelled and simulated messages do not count in `credits_spent`. Scheduled...",
|
|
"action": "See sending statistics",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/stats"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List templates",
|
|
"value": "templatesList",
|
|
"description": "Needs `sms:read`. The templates of this account, by name.",
|
|
"action": "List templates",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/templates"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Create a template",
|
|
"value": "templatesCreate",
|
|
"description": "Needs `sms:write`. The name must be unique in the account. The text accepts `{$client_name}`, `{$client_first_name}`, `{$client_last_name}`, `{$client_company_name}`, `{$remetente}` and `{$data}`....",
|
|
"action": "Create a template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/templates"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See a template",
|
|
"value": "templatesGet",
|
|
"description": "Needs `sms:read`. A template of this account.",
|
|
"action": "See a template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/templates/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Change a template",
|
|
"value": "templatesUpdate",
|
|
"description": "Needs `sms:write`. Send only the fields to change. Limited to 20 changes per minute.",
|
|
"action": "Change a template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PATCH",
|
|
"url": "=/v1/sms/templates/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete a template",
|
|
"value": "templatesDelete",
|
|
"description": "Needs `sms:write`. Standard templates that are deleted do not come back. Limited to 20 changes per minute.",
|
|
"action": "Delete a template",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/sms/templates/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See a sender request",
|
|
"value": "sendersGet",
|
|
"description": "Needs `sms:read`. By `id` or by name. `note` is the note from our team. The free sender always answers as `approved`.",
|
|
"action": "See a sender request",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/senders/{{encodeURIComponent(String($parameter[\"sender\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List numbers that do not receive",
|
|
"value": "optOutsList",
|
|
"description": "Needs `sms:read`. The numbers this account blocked, masked. Use `number` to check one.",
|
|
"action": "List numbers that do not receive",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/opt-outs"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Stop sending to a number",
|
|
"value": "optOutsCreate",
|
|
"description": "Needs `sms:write`. From now on, sending to this number answers `422` with `number_opted_out`. To take a number off the list, ask support. Limited to 20 changes per minute.",
|
|
"action": "Stop sending to a number",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/opt-outs"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Cancel a scheduled SMS",
|
|
"value": "messagesCancel",
|
|
"description": "Needs `sms:write`. Only messages of this account that are still `scheduled` can be cancelled. If the credits were already charged they go back to the balance, and `credits_returned` says how many; a...",
|
|
"action": "Cancel a scheduled SMS",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/messages/{{encodeURIComponent(String($parameter[\"id\"]))}}/cancel",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List contacts",
|
|
"value": "contactsList",
|
|
"description": "Needs `sms:read`. The SMS contacts of this account, by name, with their groups.",
|
|
"action": "List contacts",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/contacts"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Create a contact",
|
|
"value": "contactsCreate",
|
|
"description": "Needs `sms:write`. The phone number must be unique in the account. Up to 20,000 contacts. Limited to 20 changes per minute.",
|
|
"action": "Create a contact",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/contacts"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get a contact",
|
|
"value": "contactsGet",
|
|
"description": "Needs `sms:read`.",
|
|
"action": "Get a contact",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/contacts/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Update a contact",
|
|
"value": "contactsUpdate",
|
|
"description": "Needs `sms:write`. Send only the fields to change; `groups` replaces the current groups. Limited to 20 changes per minute.",
|
|
"action": "Update a contact",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PATCH",
|
|
"url": "=/v1/sms/contacts/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete a contact",
|
|
"value": "contactsDelete",
|
|
"description": "Needs `sms:write`. Messages already sent stay in the history. Limited to 20 changes per minute.",
|
|
"action": "Delete a contact",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/sms/contacts/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List contact groups",
|
|
"value": "groupsList",
|
|
"description": "Needs `sms:read`. The groups of this account, by name, with how many contacts each one has.",
|
|
"action": "List contact groups",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/groups"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Create a contact group",
|
|
"value": "groupsCreate",
|
|
"description": "Needs `sms:write`. The name must be unique in the account. Up to 100 groups. Limited to 20 changes per minute.",
|
|
"action": "Create a contact group",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/groups"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get a contact group",
|
|
"value": "groupsGet",
|
|
"description": "Needs `sms:read`.",
|
|
"action": "Get a contact group",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/groups/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Rename a contact group",
|
|
"value": "groupsUpdate",
|
|
"description": "Needs `sms:write`. Limited to 20 changes per minute.",
|
|
"action": "Rename a contact group",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PATCH",
|
|
"url": "=/v1/sms/groups/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete a contact group",
|
|
"value": "groupsDelete",
|
|
"description": "Needs `sms:write`. The contacts are not deleted: they just leave the group. Limited to 20 changes per minute. A group that triggers an E-mail Center automation (a welcome series) is refused with `409...",
|
|
"action": "Delete a contact group",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/sms/groups/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Send a verification code",
|
|
"value": "otpCreate",
|
|
"description": "Needs `sms:write`. We generate the code, send it by SMS straight away and keep only its hash. Verify it with POST /v1/sms/otp/{id}/verify. A new code for the same number cancels the previous one. No...",
|
|
"action": "Send a verification code",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/otp",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get a verification code",
|
|
"value": "otpGet",
|
|
"description": "Needs `sms:read`. The status, never the code.",
|
|
"action": "Get a verification code",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/otp/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Verify a code",
|
|
"value": "otpVerify",
|
|
"description": "Needs `sms:write`. Compares the code the user typed in constant time. `valid` says if it matched; each wrong code uses one attempt and, with none left, the status becomes `failed`. Spaces are...",
|
|
"action": "Verify a code",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/otp/{{encodeURIComponent(String($parameter[\"id\"]))}}/verify"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Cancel a verification code",
|
|
"value": "otpCancel",
|
|
"description": "Needs `sms:write`. A pending code stops being valid. The SMS already sent is not refunded.",
|
|
"action": "Cancel a verification code",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/otp/{{encodeURIComponent(String($parameter[\"id\"]))}}/cancel"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Send messages in a batch",
|
|
"value": "messagesBatch",
|
|
"description": "Needs `sms:write`. No limit on the number of messages (only the request size, 1 MB, counts), each with its own number and, if you like, its own text; `sender`, `text` and `send_at` apply to all. Each...",
|
|
"action": "Send messages in a batch",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/messages/batch",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Resend a verification code",
|
|
"value": "otpResend",
|
|
"description": "Needs `sms:write`. Sends a NEW code on the same request (`id` stays the same) and restarts the validity; wrong attempts already used stay used. No limit on resends by default; a wait between resends...",
|
|
"action": "Resend a verification code",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/otp/{{encodeURIComponent(String($parameter[\"id\"]))}}/resend"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get the delivery webhook",
|
|
"value": "webhookGet",
|
|
"description": "Needs `sms:read`. The address, the events and the last delivery; never the secret. We POST a JSON body `{\"event\": \"sms.sent\" | \"sms.failed\", \"created_at\", \"data\": {...}}` (`data` has the same fields...",
|
|
"action": "Get the delivery webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/webhook"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Save the delivery webhook",
|
|
"value": "webhookSet",
|
|
"description": "Needs `sms:write`. Creates or changes the address. The `secret` is shown only when the webhook is created or with `rotate_secret: true`: keep it. We POST a JSON body `{\"event\": \"sms.sent\" |...",
|
|
"action": "Save the delivery webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/sms/webhook"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete the delivery webhook",
|
|
"value": "webhookDelete",
|
|
"description": "Needs `sms:write`. Pending deliveries are cancelled.",
|
|
"action": "Delete the delivery webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "DELETE",
|
|
"url": "=/v1/sms/webhook"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Test the delivery webhook",
|
|
"value": "webhookTest",
|
|
"description": "Needs `sms:write`. Sends a signed `webhook.test` event to the saved address now and returns what your server answered.",
|
|
"action": "Test the delivery webhook",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/webhook/test"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get the verification code rules",
|
|
"value": "otpSettingsGet",
|
|
"description": "Needs `sms:read`. By default there are no limits (0).",
|
|
"action": "Get the verification code rules",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/otp-settings"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Set the verification code rules",
|
|
"value": "otpSettingsSet",
|
|
"description": "Needs `sms:write`. Send only what you want to change; 0 removes the limit. The same rules can be changed in the account dashboard, on the API keys page.",
|
|
"action": "Set the verification code rules",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/sms/otp-settings"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "SMS credit prices",
|
|
"value": "creditsPrices",
|
|
"description": "Needs `sms:read`. The price of each credit by quantity, in the currency of the account: the whole quantity takes the price of its tier. Tax is added on the invoice (`tax_added`).",
|
|
"action": "SMS credit prices",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/sms/credits/prices"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Buy SMS credits",
|
|
"value": "creditsPurchase",
|
|
"description": "Needs `billing:purchase`. Also needs `sms:write`. Buys `quantity` credits at the price of GET /v1/sms/credits/prices. The credits enter the SMS balance with the payment and an account without SMS...",
|
|
"action": "Buy SMS credits",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/sms/credits/purchase",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": "messagesCreate"
|
|
}];
|
|
|
|
export const smsFields: INodeProperties[] = [
|
|
{
|
|
"displayName": "Number",
|
|
"name": "number",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "With or without the country code, spaces allowed: +258841234567, 258 84 123 4567 or 84 123 4567. Mozambican and Angolan mobile numbers are recognised on their own; any other number without a code uses the country of your account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "number"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Send At",
|
|
"name": "send_at",
|
|
"type": "dateTime",
|
|
"default": "",
|
|
"description": "Optional. Schedules the message: ISO 8601 date and time with the time zone, such as `2026-11-20T09:30:00+02:00`. It must be in the future and at most 365 days from now. Without it, the message goes out right away.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "send_at"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Sender",
|
|
"name": "sender",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional. An approved sender; if omitted, the free sender (see GET /v1/sms/senders).",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "sender"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "First day, `YYYY-MM-DD`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Number",
|
|
"name": "number",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Only this number, with or without the country code.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "number"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": "options",
|
|
"options": [
|
|
{
|
|
"name": "scheduled",
|
|
"value": "scheduled"
|
|
},
|
|
{
|
|
"name": "queued",
|
|
"value": "queued"
|
|
},
|
|
{
|
|
"name": "sending",
|
|
"value": "sending"
|
|
},
|
|
{
|
|
"name": "sent",
|
|
"value": "sent"
|
|
},
|
|
{
|
|
"name": "simulated",
|
|
"value": "simulated"
|
|
},
|
|
{
|
|
"name": "failed",
|
|
"value": "failed"
|
|
},
|
|
{
|
|
"name": "cancelled",
|
|
"value": "cancelled"
|
|
}
|
|
],
|
|
"default": "scheduled",
|
|
"description": "Only this status.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "status"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "To",
|
|
"name": "to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Last day, `YYYY-MM-DD`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "to"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when sending.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Sender",
|
|
"name": "sender",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "sender"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"sendersCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Entity",
|
|
"name": "entity",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "entity"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"sendersCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Country",
|
|
"name": "country",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "MZ",
|
|
"value": "MZ"
|
|
},
|
|
{
|
|
"name": "AO",
|
|
"value": "AO"
|
|
},
|
|
{
|
|
"name": "Mozambique",
|
|
"value": "Mozambique"
|
|
},
|
|
{
|
|
"name": "Angola",
|
|
"value": "Angola"
|
|
},
|
|
{
|
|
"name": "Moçambique",
|
|
"value": "Moçambique"
|
|
}
|
|
],
|
|
"default": "MZ",
|
|
"required": true,
|
|
"description": "Mozambique (`MZ`) or Angola (`AO`), by code or name.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "country"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"sendersCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Tax ID",
|
|
"name": "tax_id",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "tax_id"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"sendersCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Purpose",
|
|
"name": "purpose",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "purpose"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"sendersCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Sample",
|
|
"name": "sample",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "sample"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"sendersCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"statsGet"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "From",
|
|
"name": "from",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "First day, `YYYY-MM-DD`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "from"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "To",
|
|
"name": "to",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Last day, `YYYY-MM-DD`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "to"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Category",
|
|
"name": "category",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "general",
|
|
"value": "general"
|
|
},
|
|
{
|
|
"name": "notice",
|
|
"value": "notice"
|
|
},
|
|
{
|
|
"name": "promotion",
|
|
"value": "promotion"
|
|
},
|
|
{
|
|
"name": "billing",
|
|
"value": "billing"
|
|
},
|
|
{
|
|
"name": "confirmation",
|
|
"value": "confirmation"
|
|
}
|
|
],
|
|
"default": "general",
|
|
"description": "Only this category.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "category"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Language",
|
|
"name": "language",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "pt",
|
|
"value": "pt"
|
|
},
|
|
{
|
|
"name": "en",
|
|
"value": "en"
|
|
}
|
|
],
|
|
"default": "pt",
|
|
"description": "Only this language.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "language"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Category",
|
|
"name": "category",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "general",
|
|
"value": "general"
|
|
},
|
|
{
|
|
"name": "notice",
|
|
"value": "notice"
|
|
},
|
|
{
|
|
"name": "promotion",
|
|
"value": "promotion"
|
|
},
|
|
{
|
|
"name": "billing",
|
|
"value": "billing"
|
|
},
|
|
{
|
|
"name": "confirmation",
|
|
"value": "confirmation"
|
|
}
|
|
],
|
|
"default": "general",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "category"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Language",
|
|
"name": "language",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "pt",
|
|
"value": "pt"
|
|
},
|
|
{
|
|
"name": "en",
|
|
"value": "en"
|
|
}
|
|
],
|
|
"default": "pt",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "language"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the template.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the template.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesUpdate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Category",
|
|
"name": "category",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "general",
|
|
"value": "general"
|
|
},
|
|
{
|
|
"name": "notice",
|
|
"value": "notice"
|
|
},
|
|
{
|
|
"name": "promotion",
|
|
"value": "promotion"
|
|
},
|
|
{
|
|
"name": "billing",
|
|
"value": "billing"
|
|
},
|
|
{
|
|
"name": "confirmation",
|
|
"value": "confirmation"
|
|
}
|
|
],
|
|
"default": "general",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "category"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Language",
|
|
"name": "language",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "pt",
|
|
"value": "pt"
|
|
},
|
|
{
|
|
"name": "en",
|
|
"value": "en"
|
|
}
|
|
],
|
|
"default": "pt",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "language"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Name",
|
|
"name": "name",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the template.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"templatesDelete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Sender",
|
|
"name": "sender",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the request or the name of the sender.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"sendersGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"optOutsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Number",
|
|
"name": "number",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Only this number, with or without the country code.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "number"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": "Number",
|
|
"name": "number",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "number"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"optOutsCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when sending.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesCancel"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"contactsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Group",
|
|
"name": "group",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Only the contacts in this group (its id).",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "group"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": "Search",
|
|
"name": "search",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Name, company, email or part of the number.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "search"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Phone",
|
|
"name": "phone",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "With or without the country code; unique in the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "phone"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"contactsCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"contactsCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Company",
|
|
"name": "company",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "company"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "email"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Groups",
|
|
"name": "groups",
|
|
"type": "string",
|
|
"default": "",
|
|
"placeholder": "value1, value2",
|
|
"description": "Optional. Group ids from GET /v1/sms/groups; replaces the current groups. 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": "",
|
|
"description": "The contact name. Name or company is required.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Notes",
|
|
"name": "notes",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "notes"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the contact.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"contactsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the contact.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"contactsUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"contactsUpdate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Company",
|
|
"name": "company",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "company"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Email",
|
|
"name": "email",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "email"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Groups",
|
|
"name": "groups",
|
|
"type": "string",
|
|
"default": "",
|
|
"placeholder": "value1, value2",
|
|
"description": "Optional. Group ids from GET /v1/sms/groups; replaces the current groups. 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": "",
|
|
"description": "The contact name. Name or company is required.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Notes",
|
|
"name": "notes",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "notes"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Phone",
|
|
"name": "phone",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "With or without the country code; unique in the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "phone"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the contact.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"contactsDelete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"groupsList"
|
|
]
|
|
}
|
|
},
|
|
"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": "Unique in the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"groupsCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the group.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"groupsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the group.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"groupsUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Name",
|
|
"name": "name",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "Unique in the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "name"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"groupsUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` of the group.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"groupsDelete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Number",
|
|
"name": "number",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "Mobile number in Mozambique or Angola, with or without the country code.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "number"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpCreate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpCreate"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Expires In",
|
|
"name": "expires_in",
|
|
"type": "number",
|
|
"default": 5,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Minutes the code stays valid.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "expires_in"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Length",
|
|
"name": "length",
|
|
"type": "number",
|
|
"default": 6,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Digits in the code.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "length"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Max Attempts",
|
|
"name": "max_attempts",
|
|
"type": "number",
|
|
"default": 5,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Wrong attempts allowed before the code fails.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "max_attempts"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Sender",
|
|
"name": "sender",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional. An approved sender ID for the country of the number; without it, the free sender.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "sender"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional. Your own text, with `{code}` once and, if you like, `{minutes}`. The default text fits in one SMS.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when the code was sent (otp_...).",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when the code was sent (otp_...).",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpVerify"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Code",
|
|
"name": "code",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "The code the user typed.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "code"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpVerify"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when the code was sent (otp_...).",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpCancel"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesBatch"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"messagesBatch"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Send At",
|
|
"name": "send_at",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional, ISO 8601 with time zone.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "send_at"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Sender",
|
|
"name": "sender",
|
|
"type": "string",
|
|
"default": "",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "sender"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Text",
|
|
"name": "text",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Text for every message without its own.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "text"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The `id` returned when the code was sent (otp_...).",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpResend"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "URL",
|
|
"name": "url",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "HTTPS address, port 443.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "url"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"webhookSet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"webhookSet"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Events",
|
|
"name": "events",
|
|
"type": "string",
|
|
"default": "",
|
|
"placeholder": "value1, value2",
|
|
"description": "Default: both. 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,
|
|
"description": "Create a new secret.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "rotate_secret"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"otpSettingsSet"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Max Codes Per Number Per Hour",
|
|
"name": "max_codes_per_number_per_hour",
|
|
"type": "number",
|
|
"default": 0,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Codes (new and resent) per number per hour. 0 = no limit (default).",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "max_codes_per_number_per_hour"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Resend Wait Seconds",
|
|
"name": "resend_wait_seconds",
|
|
"type": "number",
|
|
"default": 0,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Seconds between resends of the same code. 0 = no limit (default).",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "resend_wait_seconds"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Quantity",
|
|
"name": "quantity",
|
|
"type": "number",
|
|
"default": 0,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"required": true,
|
|
"description": "Number of credits.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "quantity"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"sms"
|
|
],
|
|
"operation": [
|
|
"creditsPurchase"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
];
|