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

Коммуникации · Восстановление результата · Доставка

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

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

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

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

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

Check or continue the existing Outlook, WhatsApp Cloud, Instagram Login, Messenger or Channex operation for one original communications_send. Uses the same outbox and protected operation receipt. Resolves the original recipient and attachments again under current company, client and integration permissions. Outlook submits a recovered draft only before a send attempt. WhatsApp Cloud, Instagram and Messenger continue only unattempted or explicitly rejected parts; Channex continues only when its native delivery ledger permits. Accepted parts and uncertain sends are never repeated. Provider IDs, addresses, credentials and arbitrary URLs are not accepted. Wazzup Label text recovery uses a bounded provider export to bind the original message ID without resending; call again with a new recovery-attempt ID while preparing. It never infers delivered/read from that export. For Gmail/Mailgun and other transports use queue recovery and message_get.

Параметры запроса
arguments
Exact original communications_send arguments, including its unchanged requestId and current contact/attachment fingerprints. обязательно по схеме · object
mode
check only reconciles the existing provider draft/message; continue can submit a recovered prepared draft only when no send was previously attempted. An uncertain send is never repeated. обязательно по схеме · string · варианты check, continue
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
messageId
Original canonical message document ID. обязательно по схеме · string
provider
Native transport with durable recovery. Wazzup reconciles identity using an exact provider history match; it never resends. обязательно по схеме · string · варианты outlook, whatsapp, instagram, facebook_messenger, channex, wazzup
state
Durable provider operation state. accepted means Graph accepted the request; submitted means the same immutable message is no longer a draft and has a sent timestamp. Neither proves recipient delivery. обязательно по схеме · string · варианты not_recorded, queued, preparing, preparation_uncertain, prepared, submission_pending, submission_uncertain, accepted, submitted
canContinue
True only when the remaining original draft/media parts can safely continue without repeating a successful or uncertain send. обязательно по схеме · boolean
deliveryConfirmed
Provider acceptance or recovery is not a recipient delivery receipt. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа communications_recover_delivery
Вход · 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, including its unchanged requestId and current contact/attachment fingerprints."
    },
    "mode": {
      "type": "string",
      "enum": [
        "check",
        "continue"
      ],
      "description": "check only reconciles the existing provider draft/message; continue can submit a recovered prepared draft only when no send was previously attempted. An uncertain send is never repeated."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Fresh recovery-attempt ID; arguments.requestId retains the original outbox identity."
    }
  },
  "required": [
    "arguments",
    "mode",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "messageId": {
      "type": "string",
      "minLength": 1,
      "description": "Original canonical message document ID."
    },
    "provider": {
      "type": "string",
      "enum": [
        "outlook",
        "whatsapp",
        "instagram",
        "facebook_messenger",
        "channex",
        "wazzup"
      ],
      "description": "Native transport with durable recovery. Wazzup reconciles identity using an exact provider history match; it never resends."
    },
    "state": {
      "type": "string",
      "enum": [
        "not_recorded",
        "queued",
        "preparing",
        "preparation_uncertain",
        "prepared",
        "submission_pending",
        "submission_uncertain",
        "accepted",
        "submitted"
      ],
      "description": "Durable provider operation state. accepted means Graph accepted the request; submitted means the same immutable message is no longer a draft and has a sent timestamp. Neither proves recipient delivery."
    },
    "canContinue": {
      "type": "boolean",
      "description": "True only when the remaining original draft/media parts can safely continue without repeating a successful or uncertain send."
    },
    "deliveryConfirmed": {
      "type": "boolean",
      "const": false,
      "description": "Provider acceptance or recovery is not a recipient delivery receipt."
    }
  },
  "required": [
    "messageId",
    "provider",
    "state",
    "canContinue",
    "deliveryConfirmed"
  ],
  "additionalProperties": false
}