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

Звонки · Просмотр · Запись

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

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

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

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

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

Read recording status and the authenticated download route for any accessible company call. Independent of its initiating account or interface; current company/location and recording permissions apply.

Параметры запроса
callId
Existing Calls document ID in the connected company, from any interface or initiating user. обязательно по схеме · string · до символов 160
Что вернёт команда
callId
Canonical company call ID. обязательно по схеме · string · до символов 160
status
Stored lifecycle status; completed does not prove the business goal. обязательно по схеме · string
ended
Stored call state is terminal. обязательно по схеме · boolean
mode
Stored call mode, or null for legacy calls. обязательно по схеме · string / null
dispatchState
Stored protected dispatch state, or null for calls from another runtime. обязательно по схеме · string / null
preparationFailure
Known setup failure before dialing. обязательно по схеме · object / null
durationSeconds
Stored duration in seconds. обязательно по схеме · number / null
recovery
Read status unless the original account can recover a prepared dispatch. обязательно по схеме · string · варианты read_status, complete, retry_same_request
recording
Native recording state; never a public media token. обязательно по схеме · object
direction
Stored direction. обязательно по схеме · string / null
customerId
Verified linked customer. обязательно по схеме · string / null
startAt
Stored start time in UTC. обязательно по схеме · string / null
finishAt
Stored finish time in UTC. обязательно по схеме · string / null
downloadUrl
Authenticated route, or null until storage completes. Requires the current connection credential. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа calls_get_recording
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "callId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Existing Calls document ID in the connected company, from any interface or initiating user."
    }
  },
  "required": [
    "callId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "callId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical company call ID."
    },
    "status": {
      "type": "string",
      "description": "Stored lifecycle status; completed does not prove the business goal."
    },
    "ended": {
      "type": "boolean",
      "description": "Stored call state is terminal."
    },
    "mode": {
      "description": "Stored call mode, or null for legacy calls.",
      "type": [
        "string",
        "null"
      ]
    },
    "dispatchState": {
      "description": "Stored protected dispatch state, or null for calls from another runtime.",
      "type": [
        "string",
        "null"
      ]
    },
    "preparationFailure": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "stage": {
              "type": "string",
              "description": "Preparation phase."
            },
            "code": {
              "type": "string",
              "description": "Sanitized preparation error."
            }
          },
          "required": [
            "stage",
            "code"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Known setup failure before dialing."
    },
    "durationSeconds": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ],
      "description": "Stored duration in seconds."
    },
    "recovery": {
      "type": "string",
      "enum": [
        "read_status",
        "complete",
        "retry_same_request"
      ],
      "description": "Read status unless the original account can recover a prepared dispatch."
    },
    "recording": {
      "type": "object",
      "properties": {
        "requested": {
          "type": "boolean",
          "description": "A recording was requested or exists."
        },
        "status": {
          "type": "string",
          "description": "Recording persistence state."
        },
        "available": {
          "type": "boolean",
          "description": "A verified native media object exists."
        }
      },
      "required": [
        "requested",
        "status",
        "available"
      ],
      "additionalProperties": false,
      "description": "Native recording state; never a public media token."
    },
    "direction": {
      "description": "Stored direction.",
      "type": [
        "string",
        "null"
      ]
    },
    "customerId": {
      "description": "Verified linked customer.",
      "type": [
        "string",
        "null"
      ]
    },
    "startAt": {
      "description": "Stored start time in UTC.",
      "type": [
        "string",
        "null"
      ]
    },
    "finishAt": {
      "description": "Stored finish time in UTC.",
      "type": [
        "string",
        "null"
      ]
    },
    "downloadUrl": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "description": "Authenticated route, or null until storage completes. Requires the current connection credential."
    }
  },
  "required": [
    "callId",
    "status",
    "ended",
    "mode",
    "dispatchState",
    "preparationFailure",
    "durationSeconds",
    "recovery",
    "recording",
    "direction",
    "customerId",
    "startAt",
    "finishAt",
    "downloadUrl"
  ],
  "additionalProperties": false
}