§ API REFERENCE
读报告内容(免登 / PII-safe)
GET
/report-access/view-data换取 token用报告免登 token 读 PII-safe 报告投影内容(绝不下发原始 PII / 内部字段)。报告状态查询走姊妹端点 /report-access/session。
鉴权:Authorization: Bearer <report_access_token>(report-access 签发,非业务 access_token)。
§ 1
请求信息
REQUESTGET https://api.lingxiguangnian.com/api/open/v1/report-access/view-data§ 2
调用示例
EXAMPLESGET /report-access/view-data
curl "https://api.lingxiguangnian.com/api/open/v1/report-access/view-data" \ -H "Authorization: Bearer rt_xxxxxxxx"
§ 3
返回结果
RESPONSE返回字段
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
report_status | string | 是 | 报告状态。 |
report_kind | string | 是 | item / solution。 |
RESPONSE · JSON
{ "success": true, "data": { "report_id": "...", "report_kind": "item", "report_status": "READY" } }§ 4
端点错误码
ERRORS通用鉴权、scope 与限流错误见「使用概述」;下表为本端点专属错误。
| HTTP | error_code | 触发条件 |
|---|---|---|
| 401 | open_api.report_access_token_invalid | 报告 token 无效 / 过期 / 撤销 / 超次(统一 401)。 |
使用说明
- PII-safe:投影只含标准化分数 / 聚合摘要,绝不含姓名 / 手机 / 原始快照。/report-access/session 为零内容状态端点,本端点为内容投影端点。
契约真源:apps/m-master/src/app/api/open/v1/report-access/view-data/route.ts