API 参考 · 2. 文档准备 · getDocumentDirectory

读取文档目录

GET/open/v1/documents/directories/{directory_id}预览scope: document.read

这是预览能力:字段与行为可能在后续 minor 版本中调整,调整会写进更新日志。近 30 天内新增的能力,或在生产环境 90 天内没有调用记录的能力,标为「预览」;其余为「稳定」。预览能力的字段与行为可能在后续 minor 版本中调整,调整会写进更新日志。

请求

鉴权:请求头 X-Aistrong-Key;可选 X-Request-Id 贯穿追踪。

参数

名称位置类型约束说明
directory_id必填路径integer≥1

响应

JSON 响应统一为信封结构:success / data / error / metering / request_id;下表描述 data。

200请求已成功处理application/json
字段类型约束说明
dataobject不接受额外字段
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)

错误状态

HTTP含义
400请求参数无效
401API Key 无效
403API Key 无权限
404文档、任务或其他资源不存在
500服务内部异常
502上游服务异常
503能力暂不可用
504上游服务超时

错误体的 error.code 取值见错误码。