MCP Control
Коммуникации · Изменение

Коммуникации · Возобновление · Отправка

communications_resume_send
Контактные карточки и телефон

Попробуйте три запроса

Подготовить
  1. Вы указываетеОбъект
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Коммуникации / Возобновление / Отправка». Для изменения нужны arguments. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
arguments
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
Выполни согласованное действие «Коммуникации / Возобновление / Отправка» с проверенными значениями. Покажи результат этой попытки.
Параметры примера
requestId
Ключ операции
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Коммуникации / Возобновление / Отправка» по исходному ответу. Покажи состояние, source. Объясни, чем подтвердить эффект для выбранного объекта.
Как проследить одну попытку
  1. ЗапросСохранить исходный ключ
  2. ОтветПроверить статус
  3. ПроверкаСверить эффект операции
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

Описание разработчика

Continue an uncertain original communications_send using the same native idempotency key and exact arguments. Requires an existing pending MCP request. A matching outbox record is recovered without calling the sender; otherwise the existing native create-once dispatcher is retried with the original request ID. Never creates a replacement request or resends a failed provider delivery. Read communications_get_send_result first.

Параметры запроса
arguments
Exact original communications_send arguments, retaining the original requestId. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
state
Committed native outbox/MCP receipt, unresolved pending send, or no original registry request. This is queue acceptance, not provider delivery. обязательно по схеме · string · варианты committed, pending, not_recorded
source
Evidence used for recovery. A native outbox result is reconstructed from the exact original message; created=false because this lookup creates nothing. обязательно по схеме · string · варианты mcp_receipt, native_outbox, none
result
Verified queued-message acknowledgment, or null while unresolved. Use message_get for current delivery outcome. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа communications_resume_send
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "arguments": {
      "type": "object",
      "properties": {
        "customerId": {
          "description": "Existing customer ID, used together with contactPointId. Omit both when using an explicit recipient.",
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$"
        },
        "contactPointId": {
          "description": "Exact current customer_contacts fingerprint. Alternative to recipient; never fabricate a customer to send a message.",
          "type": "string",
          "pattern": "^cp_[a-f0-9]{64}$"
        },
        "recipient": {
          "description": "Explicit user-selected address, including WhatsApp phone number. Use instead of customerId/contactPointId when no CRM customer exists. For a reply copy the exact contact method from an accessible message.",
          "type": "object",
          "properties": {
            "channel": {
              "type": "string",
              "enum": [
                "whatsapp",
                "messenger",
                "instagram",
                "telegram",
                "sms",
                "email",
                "imessage",
                "channex",
                "hospitable"
              ],
              "description": "Explicit intended messaging channel. Messenger uses the Facebook messaging integration; an advertising or social publishing integration cannot send a DM."
            },
            "address": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320,
              "description": "Recipient explicitly supplied by the user or read from an accessible conversation. Phone numbers must include + and country code; Messenger/Instagram use scoped numeric recipient IDs, Telegram uses its numeric chat ID. Never invent an ID from a name or handle."
            }
          },
          "required": [
            "channel",
            "address"
          ],
          "additionalProperties": false
        },
        "integrationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$",
          "description": "Canonical company integration ID returned by integrations_list_status; selects the intended channel explicitly."
        },
        "replyToMessageId": {
          "description": "Optional canonical message ID from message_get or conversation_messages. The server verifies this parent belongs to the selected customer, allowed location and company integration. Provider message IDs, conversation IDs and paths are not accepted. Omit to queue a new message.",
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$"
        },
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4000,
          "description": "Nonempty body for this single recipient, at most 4000 characters; plain text unless html=true for a supported email integration."
        },
        "subject": {
          "description": "Optional email subject, at most 200 characters and no control characters. Supported only by native Gmail/Mailgun/Outlook integrations. Omit to retain the existing reply subject.",
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "html": {
          "description": "For a native Gmail/Mailgun/Outlook integration only, true means text contains HTML; false or omitted sends plain text. This never changes the selected recipient or integration.",
          "type": "boolean"
        },
        "attachments": {
          "description": "Existing native message references, or completed private fileId/mediaId references. Private references require media.read and entity access; supported by native Gmail/Mailgun/Outlook, WhatsApp Cloud and Messenger, up to five and 2500 KiB total. WhatsApp Cloud and Messenger accept images, MP4, PDF, plain text and Office; other file types and Wazzup transport are rejected. Messenger text is limited to 2000 characters. Select either native image/audio references or private references in one message. No URLs, paths, credentials or base64. Rechecked before send, delivery and recovery.",
          "minItems": 1,
          "maxItems": 5,
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
                    "description": "Accessible canonical root message ID containing the original stored attachment."
                  },
                  "attachmentId": {
                    "type": "string",
                    "pattern": "^ma_[a-f0-9]{64}$",
                    "description": "Exact current attachment fingerprint from communications_list_message_attachments. It binds the company, source message, media kind and stored URI."
                  }
                },
                "required": [
                  "messageId",
                  "attachmentId"
                ],
                "additionalProperties": false
              },
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "fileId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                        "description": "Completed private file UUID from files_get/list. Bytes, URLs and credentials stay backend-side."
                      }
                    },
                    "required": [
                      "fileId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                        "description": "Completed managed image UUID from media_get/list. The native transport receives sanitized bytes privately."
                      }
                    },
                    "required": [
                      "mediaId"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            ]
          }
        },
        "requestId": {
          "type": "string",
          "minLength": 8,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_-]+$",
          "description": "Stable request ID for this exact outbound message, using letters, digits, underscores or hyphens; reuse unchanged for network retries. Changing the reply target requires a new request ID."
        }
      },
      "required": [
        "integrationId",
        "text",
        "requestId"
      ],
      "additionalProperties": false,
      "description": "Exact original communications_send arguments, retaining the original requestId."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable recovery-attempt ID, distinct from arguments.requestId. It never changes the native send identity."
    }
  },
  "required": [
    "arguments",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "committed",
        "pending",
        "not_recorded"
      ],
      "description": "Committed native outbox/MCP receipt, unresolved pending send, or no original registry request. This is queue acceptance, not provider delivery."
    },
    "source": {
      "type": "string",
      "enum": [
        "mcp_receipt",
        "native_outbox",
        "none"
      ],
      "description": "Evidence used for recovery. A native outbox result is reconstructed from the exact original message; created=false because this lookup creates nothing."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "messageId": {
              "type": "string",
              "description": "Canonical root message identifier returned by the existing dispatcher."
            },
            "status": {
              "type": "string",
              "description": "Accepted or queued state; provider delivery is verified later from message status."
            },
            "created": {
              "type": "boolean",
              "description": "Whether the existing outbound action created a new message or returned the prior idempotent result."
            }
          },
          "required": [
            "messageId",
            "status",
            "created"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Verified queued-message acknowledgment, or null while unresolved. Use message_get for current delivery outcome."
    }
  },
  "required": [
    "state",
    "source",
    "result"
  ],
  "additionalProperties": false
}