MCP Control
Коммуникации · Чтение

Коммуникации · Результат операции «отправка»

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

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

Получить данные
  1. Вы указываетеКлиент
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Коммуникации / Результат операции «отправка»» выполни чтение по выбранной записи (клиент). Выведи кратко: состояние, source.
Что искать в ответе
state
Состояние
source
Поле ответа
result
Результат
После обрыва
  1. Вы указываетеПервоначальный ключ
  2. ПомощникПоиск квитанции
  3. Вы получаетеСостояние операции
Запрос в чат
Найди результат «Коммуникации / Результат операции «отправка»» по ключу первоначальной попытки. Покажи состояние операции и раздели подтверждённые и пока неизвестные данные.
Порядок проверки
1
Взять исходный ключ
2
Проверить квитанцию
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Коммуникации / Результат операции «отправка»» объясни состояние, source. Отметь отсутствующие значения.
Поля для проверки
state
Состояние
source
Поле ответа
result
Результат
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании. Для поиска результата возьмите идентификатор из первоначальной попытки. Сохраните исходные аргументы.

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

Recover a communications_send response using its exact original arguments and unchanged account/client permissions. Checks the original MCP receipt and, after a lost response, the deterministic native outbox message. Never sends, unlocks or changes anything. pending can be continued through communications_resume_send; a committed queue entry is not proof of provider delivery.

Параметры запроса
customerId
Идентификатор клиента, выбранного по результату поиска. необязательно · string · до символов 160
contactPointId
Exact current customer_contacts fingerprint. Alternative to recipient; never fabricate a customer to send a message. необязательно · string
recipient
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. необязательно · object
integrationId
Canonical company integration ID returned by integrations_list_status; selects the intended channel explicitly. обязательно по схеме · string · до символов 160
replyToMessageId
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. необязательно · string · до символов 160
text
Nonempty body for this single recipient, at most 4000 characters; plain text unless html=true for a supported email integration. обязательно по схеме · string · до символов 4000
subject
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. необязательно · string · до символов 200
html
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. необязательно · boolean
attachments
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. необязательно · array · до элементов 5
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
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_get_send_result
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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
}
Выход · 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
}