# 知识反馈接口

# 获取反馈列表

请求URL

GET https://lxapi.lexiangla.com/cgi-bin/v1/kb/spaces/{space_id}/feedbacks

请求头

参数 是否必须 说明
Authorization 接口调用凭证 access_token
值格式:"Bearer access_token"
示例值:"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJS"

其他说明

事项 说明
权限要求 知识库管理
频率限制 3000次/分钟

参数说明

参数 是否必须 说明
space_id 知识库ID
limit 限制个数,1~100 以内的整数
page_token 分页游标,根据上一页返回的page_token传入

响应

200 Ok 状态码


{
    "data": [
        {
            "type": "kb_feedback",
            "id": "48d8a0fc13b84eb594439676000xxxxx",
            "attributes": {
                "status": "unprocessed",
                "type": "kb_content_incomplete",
                "created_at": "2025-06-30 18:53:28",
                "content": "这是反馈的内容",
                "attachments": [
                    "https://abc.lexiangla.com/assets/78942ea5a81d459eb5656f3c3d1329f8?company_from=abc",
                    "https://abc.lexiangla.com/assets/8e38f9f2d4104e20ac4bd4afe81c0743?company_from=abc",
                    "https://abc.lexiangla.com/assets/8c8fb79edf9f4ab6b81f840559915dc4?company_from=abc"
                ]
            },
            "relationships": {
                "owner": {
                    "data": {
                        "type": "staff",
                        "id": " LX002"
                    }
                },
                "reviewers": {
                    "data": [
                        {
                            "type": "staff",
                            "id": "LX001"
                        }
                    ]
                },
                "entry": {
                    "data": {
                        "type": "kb_entry",
                        "id": "1e6b5571856b4b50b4c7d9c66d0xxxxx"
                    }
                }
            }
        },
        {
            "type": "kb_feedback",
            "id": "f47c845ee4484651852e0fc2e7xxxxx",
            "attributes": {
                "status": "unprocessed",
                "type": "kb_content_incomplete",
                "created_at": "2025-06-30 19:59:24",
                "content": "这是第二个反馈内容",
                "attachments": [
                    "https://abc.lexiangla.com/assets/48bb2746c94d46f2ae3398e3b66445a5?company_from=abc",
                    "https://abc.lexiangla.com/assets/b4d68433966f4e0abce3d95fdedcddfc?company_from=abc",
                    "https://abc.lexiangla.com/assets/15fd7461212748a3b3cf78ad73bfd796?company_from=abc",
                    "https://abc.lexiangla.com/assets/9b9bb659730b4c68bffd56cb2ecd98d4?company_from=abc"
                ]
            },
            "relationships": {
                "owner": {
                    "data": {
                        "type": "staff",
                        "id": " LX002"
                    }
                },
                "reviewers": {
                    "data": [
                        {
                            "type": "staff",
                            "id": "LX003"
                        }
                    ]
                },
                "entry": {
                    "data": {
                        "type": "kb_entry",
                        "id": "1e6b5571856b4b50b4c7d9c66dxxxxx"
                    }
                }
            }
        }
    ],
    "included": [
        {
            "type": "staff",
            "id": "LX002",
            "attributes": {
                "name": "LX002",
                "english_name": "别名2",
                "organization": "开发组"
            }
        },
        {
            "type": "staff",
            "id": "LX001",
            "attributes": {
                "name": "LX001",
                "english_name": "别名",
                "organization": "开发组"
            }
        },
        {
            "type": "kb_entry",
            "id": "1e6b5571856b4b50b4c7d9c66dxxxxx",
            "attributes": {
                "name": "这是页面名称",
                "entry_type": "page",
                "created_at": "2025-06-25 16:45:50",
                "updated_at": "2025-07-01 02:07:19"
            }
        }
    ],
    "meta": {
        "page_token": "WyIyMDI1LTA2LTMwVDE4OjUzOjI4KzA4OjAwIiwiNDhkOGEwZmMxM2I4NGViNTk0NDM5Njc2MDAwMzA0NjMiXQ=="
    }
}

参数说明

参数 说明
status 状态;
unprocessed表示未处理;
processing表示处理中;
processed表示已处理;
not_process表示无需处理
type 类型;
kb_content_incomplete表示内容缺失;
kb_content_mistake表示内容有误;
kb_content_suggestion表示内容建议;
kb_content_too_old表示内容陈旧;
kb_content_other表示其他
created_at 创建时间
content 反馈内容
attachments 反馈图片,可根据 id 在 included 中查找
relationships.owner 反馈创建者,可根据 id 在 included 中查找
reviewers 反馈处理人,多个,可根据 id 在 included 中查找
entry 反馈对象,可根据 id 在 included 中查找