Коммуникации · Чтение
Коммуникации · Список · Сообщения · Вложения
communications_list_message_attachments
Попробуйте три запроса
Получить данные
- Вы указываетеMessageid
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Коммуникации / Список / Сообщения / Вложения» выполни чтение по выбранной записи (messageId). Выведи кратко: messageId, список позиций.
- messageId
- Поле ответа
- items
- Список позиций
- unavailableCount
- Поле ответа
Задать параметры
- Вы указываетеMessageid
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Коммуникации / Список / Сообщения / Вложения» на учебном примере с messageId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- messageId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Коммуникации / Список / Сообщения / Вложения» объясни messageId, список позиций. Отметь отсутствующие значения.
- messageId
- Поле ответа
- items
- Список позиций
- unavailableCount
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
List reusable attachments on an accessible native message: native image/audio fingerprints, or completed private fileId/mediaId references for native email, WhatsApp Cloud, Instagram Login, Messenger or Channex. Private references require current media.read and source entity access. Never returns storage URLs, tokens or bytes. Use selected references in communications_send.attachments. Only objects in this deployment storage under the current company path are reusable; unavailableCount reports unsupported references. No upload, download or external send occurs.
Параметры запроса
- messageId
- Canonical message identifier returned by a search action in the currently connected workspace. Never construct it from a display name. обязательно по схеме · string · до символов 160
Что вернёт команда
- messageId
- The source message whose current access was verified. обязательно по схеме · string
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 26
- unavailableCount
- Stored entries outside the reusable transport contract. They were not silently converted to URLs or forwarded. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"messageId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical message identifier returned by a search action in the currently connected workspace. Never construct it from a display name."
}
},
"required": [
"messageId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"messageId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "The source message whose current access was verified."
},
"items": {
"maxItems": 26,
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"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."
},
"kind": {
"type": "string",
"enum": [
"image",
"audio"
],
"description": "Native transport media kind. This does not change or convert the original file."
}
},
"required": [
"attachmentId",
"kind"
],
"additionalProperties": false
},
{
"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 reference, independently checked using current file/entity permissions."
},
"kind": {
"type": "string",
"enum": [
"document",
"video"
],
"description": "Stored private document or video; no bytes or URLs are returned."
}
},
"required": [
"fileId",
"kind"
],
"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 sanitized image reference, checked using current file/entity permissions."
},
"kind": {
"type": "string",
"const": "image",
"description": "Private managed image."
}
},
"required": [
"mediaId",
"kind"
],
"additionalProperties": false
}
]
},
"description": "Reusable native fingerprints or private fileId/mediaId references. Private references additionally require current file/entity read access. No URLs, tokens or bytes."
},
"unavailableCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Stored entries outside the reusable transport contract. They were not silently converted to URLs or forwarded."
}
},
"required": [
"messageId",
"items",
"unavailableCount"
],
"additionalProperties": false
}