列出目录内容
GET/open/v1/documents/directories/{directory_id}/entries预览scope: document.read
这是预览能力:字段与行为可能在后续 minor 版本中调整,调整会写进更新日志。近 30 天内新增的能力,或在生产环境 90 天内没有调用记录的能力,标为「预览」;其余为「稳定」。预览能力的字段与行为可能在后续 minor 版本中调整,调整会写进更新日志。
请求
参数
| 名称 | 位置 | 类型 | 约束 | 说明 |
|---|---|---|---|---|
| directory_id必填 | 路径 | integer | ≥1 |
响应
200请求已成功处理
| 字段 | 类型 | 约束 | 说明 |
|---|---|---|---|
| data | object | 不接受额外字段 | |
| directory_id必填 | integer | ≥1 | |
| items必填 | array<object> | ||
| [ ] | object | 不接受额外字段 | |
| directory_id必填 | integer | ≥1 | |
| name必填 | string | null | 长度≤255 | |
| parent_id必填 | integer | null | ≥1 | |
| owner_ref必填 | string | null | 长度≤128 | |
| kind必填 | string | 枚举 "directory" / "document" | |
| doc_id必填 | integer | null | ≥1 | |
| created_at必填 | string(date-time) | null(date-time) | ||
| document | object | 不接受额外字段 | |
| doc_id必填 | integer | ≥1 | |
| name必填 | string | 长度≥1;长度≤255 | |
| extension必填 | string | null | 长度≤32 | |
| size必填 | integer | null | ≥0 | |
| sha256必填 | string | null | 正则 ^[0-9a-f]{64}$ | |
| owner_ref必填 | string | null | 长度≤128 | |
| total_pages必填 | integer | ≥0 | |
| doc_type必填 | string | null | 长度≤32 | 单证形态类型(平台封闭枚举,如 vat_invoice/id_card;null=未判定,按 general 处理)。 |
| created_at必填 | string(date-time) | null(date-time) | ||
| directory_id必填 | integer | null | ≥1 | |
| busi_id | string | null | 长度≤128 | 外部渠道业务标识(可选,P0-3 恢复按 busi_id 查询链路)。 |
错误状态
| HTTP | 含义 |
|---|---|
| 400 | 请求参数无效 |
| 401 | API Key 无效 |
| 403 | API Key 无权限 |
| 404 | 文档、任务或其他资源不存在 |
| 500 | 服务内部异常 |
| 502 | 上游服务异常 |
| 503 | 能力暂不可用 |
| 504 | 上游服务超时 |