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

Коммуникации · Проверка · Отправка

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

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

Получить данные
  1. Вы указываетеКлиент
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Коммуникации / Проверка / Отправка» выполни чтение по выбранной записи (клиент). Выведи кратко: статус, клиент.
Что искать в ответе
status
Статус
customerId
Клиент
integrationId
Поле ответа
Задать параметры
  1. Вы указываетеКлиент
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Коммуникации / Проверка / Отправка» на учебном примере с customerId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
customerId
DEMO-101
integrationId
DEMO-101
replyToMessageId
DEMO-101
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Коммуникации / Проверка / Отправка» объясни статус, клиент. Отметь отсутствующие значения.
Поля для проверки
status
Статус
customerId
Клиент
integrationId
Поле ответа
Как работает действие

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

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

Check the current recipient fingerprint, integration grant/status, reply routing and selected stored attachments using the same server checks as communications_send. SMS through Twilio uses this same read-only preflight. For explicit recipient sends also runs the native route validation without queueing. Read-only: no outbox entry, provider API call or delivery. ready_for_native_validation means these checks passed; the native provider still checks contacts, channel policy, messaging windows and delivery when sending.

Параметры запроса
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
Что вернёт команда
status
Current checks passed; this is not provider approval or a reservation. обязательно по схеме · string
customerId
Verified stored customer, or null for an explicit unlinked recipient. обязательно по схеме · string / null
integrationId
Selected accessible integration ID. обязательно по схеме · string · до символов 160
imageCount
Number of distinct selected images. обязательно по схеме · integer · минимум 0 · максимум 5
audio
Whether a single audio reference was selected. обязательно по схеме · boolean
privateAttachmentCount
Number of authorized completed private file/image references; no bytes leave this read-only validation. обязательно по схеме · integer · минимум 0 · максимум 5
nativeRoutingVerified
True when explicit-recipient routing was checked by the live native sender in validation-only mode. False for the existing stored-contact preflight. обязательно по схеме · boolean
providerVerified
No provider was contacted and no message was queued. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа communications_validate_send
Вход · 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": {
    "status": {
      "type": "string",
      "const": "ready_for_native_validation",
      "description": "Current checks passed; this is not provider approval or a reservation."
    },
    "customerId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Verified stored customer, or null for an explicit unlinked recipient."
    },
    "integrationId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Selected accessible integration ID."
    },
    "imageCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5,
      "description": "Number of distinct selected images."
    },
    "audio": {
      "type": "boolean",
      "description": "Whether a single audio reference was selected."
    },
    "privateAttachmentCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5,
      "description": "Number of authorized completed private file/image references; no bytes leave this read-only validation."
    },
    "nativeRoutingVerified": {
      "type": "boolean",
      "description": "True when explicit-recipient routing was checked by the live native sender in validation-only mode. False for the existing stored-contact preflight."
    },
    "providerVerified": {
      "type": "boolean",
      "const": false,
      "description": "No provider was contacted and no message was queued."
    }
  },
  "required": [
    "status",
    "customerId",
    "integrationId",
    "imageCount",
    "audio",
    "privateAttachmentCount",
    "nativeRoutingVerified",
    "providerVerified"
  ],
  "additionalProperties": false
}