Файлы и медиа · Чтение
Файлы · Список · Для · Объекты
files_list_for_entity
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Файлы / Список / Для / Объекты» выполни чтение по выбранной записи (объект). Выведи кратко: список позиций, nextId.
- items
- Список позиций
- nextId
- Поле ответа
Задать параметры
- Вы указываетеОбъект
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Файлы / Список / Для / Объекты» на учебном примере с entityType = customer. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- entityType
- customer
- entityId
- DEMO-101
- limit
- 3
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Файлы / Список / Для / Объекты» объясни список позиций, nextId. Отметь отсутствующие значения.
- items
- Список позиций
- nextId
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read one bounded page of completed private files for an existing authorized business entity. Incomplete/revoked uploads are excluded. This does not modify native document or attachment fields.
Параметры запроса
- entityType
- Existing entity type. Current company, location and entity permissions are checked before accepting or reading a private file. обязательно по схеме · string · варианты customer, lead, task, order, product, company, employee
- entityId
- Canonical existing entity identifier, resolved through current company and location permissions. обязательно по схеме · string · до символов 128
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
- afterId
- nextId from the preceding page of this same entity. необязательно · string
Что вернёт команда
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 50
- nextId
- Pass as afterId for the next page, or null when complete. обязательно по схеме · null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"entityType": {
"type": "string",
"enum": [
"customer",
"lead",
"task",
"order",
"product",
"company",
"employee"
],
"description": "Existing entity type. Current company, location and entity permissions are checked before accepting or reading a private file."
},
"entityId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical existing entity identifier, resolved through current company and location permissions."
},
"limit": {
"default": 20,
"description": "Maximum completed files per page, from1 to50.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"afterId": {
"description": "nextId from the preceding page of this same entity.",
"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)$"
}
},
"required": [
"entityType",
"entityId",
"limit"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"fileId": {
"$ref": "#/$defs/_mcp0"
},
"referenceId": {
"type": "string",
"pattern": "^file:[0-9a-f-]{36}$",
"description": "Internal attachment reference file:<fileId>; never proof of access."
},
"entityType": {
"type": "string",
"enum": [
"customer",
"lead",
"task",
"order",
"product",
"company",
"employee"
],
"description": "Existing entity type. Current company, location and entity permissions are checked before accepting or reading a private file."
},
"entityId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical existing entity identifier, resolved through current company and location permissions."
},
"fileName": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "Safe download filename, without paths or control characters, with the matching extension."
},
"mimeType": {
"type": "string",
"enum": [
"video/mp4",
"video/webm",
"application/pdf",
"text/plain",
"text/csv",
"application/json",
"application/zip",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
],
"description": "Actual supported document or MP4/WebM video format. Video playback depends on browser codec support. HTML, SVG, scripts, executables, encrypted archives and macro-enabled Office files are not accepted."
},
"byteLength": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 20971520,
"description": "Exact source/stored file byte length, at most20MiB."
},
"url": {
"type": "string",
"format": "uri",
"description": "Current authenticated attachment download URL. No public, presigned or bearer URL is returned."
}
},
"required": [
"fileId",
"referenceId",
"entityType",
"entityId",
"fileName",
"mimeType",
"byteLength",
"url"
],
"additionalProperties": false
},
"description": "Completed private files belonging to the selected entity."
},
"nextId": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Pass as afterId for the next page, or null when complete."
}
},
"required": [
"items",
"nextId"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"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": "Server-issued private file UUID, separate from managed image IDs."
}
}
}