Документы · Чтение
Документы · Просмотр · Экспорт
documents_get_export
Попробуйте три запроса
Получить данные
- Вы указываетеExportid
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Документы / Просмотр / Экспорт» выполни чтение по выбранной записи (exportId). Выведи кратко: exportId, документ.
- exportId
- Поле ответа
- documentId
- Документ
- orderId
- Заказ
Уточнить объект
- Вы указываетеExportid
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Перед чтением «Документы / Просмотр / Экспорт» сверь exportId с выбранной мной записью. Если совпадений несколько, покажи различия и дождись выбора.
- exportId
- Из выбранной записи
- При совпадениях
- Уточнить выбор
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Документы / Просмотр / Экспорт» объясни exportId, документ. Отметь отсутствующие значения.
- exportId
- Поле ответа
- documentId
- Документ
- orderId
- Заказ
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read the lifecycle status and authenticated download endpoint of an existing PDF export in this workspace. Current document and order/location permissions are checked again. Expired or revoked exports have no download URL.
Параметры запроса
- exportId
- Server-issued PDF export identifier; never a Storage path. обязательно по схеме · string
Что вернёт команда
- exportId
- Server-issued PDF export identifier; never a Storage path. обязательно по схеме · string
- documentId
- Canonical native document identifier. обязательно по схеме · string
- orderId
- Canonical order used to fill this document, when present. необязательно · string
- documentRevision
- Exact native document layout revision captured by this export. обязательно по схеме · string
- status
- Current export lifecycle status. Only ready exports can be downloaded. обязательно по схеме · string · варианты ready, rendering, failed, revoked, expired
- mimeType
- The exported file is a real PDF. обязательно по схеме · string
- byteLength
- Size of the finished PDF, or zero before rendering completes. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- sha256
- PDF content hash for verification, or null before completion. обязательно по схеме · string / null
- filename
- Safe download filename. обязательно по схеме · string
- createdAt
- UTC creation time. обязательно по схеме · string
- expiresAt
- UTC expiry; downloads are denied after this time even before cleanup runs. обязательно по схеме · string
- downloadUrl
- Authenticated GET endpoint for a ready PDF. Send the current workspace bearer token; no signing token or PDF bytes are returned in tool output. обязательно по схеме · string / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"exportId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Server-issued PDF export identifier; never a Storage path."
}
},
"required": [
"exportId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"exportId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Server-issued PDF export identifier; never a Storage path."
},
"documentId": {
"type": "string",
"description": "Canonical native document identifier."
},
"orderId": {
"description": "Canonical order used to fill this document, when present.",
"type": "string"
},
"documentRevision": {
"type": "string",
"description": "Exact native document layout revision captured by this export."
},
"status": {
"type": "string",
"enum": [
"ready",
"rendering",
"failed",
"revoked",
"expired"
],
"description": "Current export lifecycle status. Only ready exports can be downloaded."
},
"mimeType": {
"type": "string",
"const": "application/pdf",
"description": "The exported file is a real PDF."
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Size of the finished PDF, or zero before rendering completes."
},
"sha256": {
"description": "PDF content hash for verification, or null before completion.",
"type": [
"string",
"null"
]
},
"filename": {
"type": "string",
"description": "Safe download filename."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "UTC creation time."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "UTC expiry; downloads are denied after this time even before cleanup runs."
},
"downloadUrl": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
],
"description": "Authenticated GET endpoint for a ready PDF. Send the current workspace bearer token; no signing token or PDF bytes are returned in tool output."
}
},
"required": [
"exportId",
"documentId",
"documentRevision",
"status",
"mimeType",
"byteLength",
"sha256",
"filename",
"createdAt",
"expiresAt",
"downloadUrl"
],
"additionalProperties": false
}