FaqStandardDetail - 查看标准问详情
更新时间:2025-12-26
API访问域名
| 请求方式 | GET |
|---|---|
| base url | https://keyue.cloud.baidu.com |
| 后缀接口 | /open/v1/api/v2/faq/standard/detail |
| Authentication | token为API Key |
说明
无
请求参数
Header参数
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| Content-Type | string | 是 | 内容类型 | 固定值:application/json |
| token | string | 是 | API KEY | 机器人API KEY。 详细获取方式参考:准备工作 |
| uid | string | 是 | 用户ID | 详细获取方式参考:准备工作 |
| username | string | 是 | 用户名 | 详细获取方式参考:准备工作 |
Parameter参数
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | faq Id |
Body参数
无
响应参数
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| time | integer | 是 | 时间 | 1717037136976 |
| data | object | 是 | 数据 | 数据对象,详见data子数据 |
| code | integer | 是 | 状态码 | 200 |
| msg | string | 是 | 状态信息 | OK |
data子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | ID | 6f4b1206-bdf6-42e0-94a8-bb57d2a5a4e6 |
| question | string | 是 | 问题 | hahahah |
| answer | object | 是 | 答案 | 答案对象,详见answer子数据 |
| status | integer | 是 | 状态 | 0 |
| dirId | string | 是 | 目录ID | 0 |
| tags | array | 否 | 标签 | [] |
| createdUsername | string | 否 | 创建用户名 | pnstest5 |
| createdUserId | string | 否 | 创建用户ID | cf7d9692703d45d1b5517a30ab3efa53 |
| lastEditUsername | string | 否 | 最后编辑用户名 | pnstest5 |
| lastEditUserId | string | 否 | 最后编辑用户ID | cf7d9692703d45d1b5517a30ab3efa53 |
| lastEditTime | string | 否 | 最后编辑时间 | 2024-05-30 10:37:08 |
| updated | string | 否 | 更新时间 | 2024-05-30 10:37:08 |
| created | string | 否 | 创建时间 | 2024-05-30 10:37:08 |
| editVersion | integer | 是 | 编辑版本 | 0 |
| expire | string | 是 | 过期时间 | 2099-12-31 23:59:59 |
| effect | string | 是 | 生效时间 | 2024-05-30 10:37:01 |
| channelAnswers | array | 否 | 渠道答案 | [] |
| channel | string | 否 | 渠道 | "" |
| hasActiveCopy | boolean | 否 | 有活动副本 | false |
| isActiveHook | integer | 否 | 是否活跃挂钩 | 0 |
| instruction | null | 否 | 指令 | null |
| interrupted | boolean | 是 | 中断 | true |
| exeInstruct | boolean | 是 | 执行指令 | false |
| instructions | array | 否 | 指令 | [] |
| suggestList | array | 否 | 建议列表 | [] |
answer子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| list | array | 是 | 列表 | 列表 ,详见list子数据 |
| type | integer | 是 | 类型 | 0 |
list子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | ID | niIUTdLzPJhedJde_rPOiZsuhxMc68n6Czvz |
| type | integer | 是 | 类型 | 1 |
| text | string | 是 | 文本 | hehehe |
| url | string | 否 | URL | "" |
| richText | string | 否 | 富文本 | "" |
请求示例
Bash
1curl --location 'https://keyue.cloud.baidu.com/open/v1/api/v2/faq/standard/detail?id=6f4b1206-bdf6-42e0-94a8-bb57d2a5a4e6' \
2--header 'token: xxxx' \
3--header 'Content-Type: application/json' \
4--header 'uid: cf7d9692703d45d1b5517a30ab3efa53' \
5--header 'username: pnstest5'
响应示例
1{
2 "time": 1717037136976,
3 "data": {
4 "id": "6f4b1206-bdf6-42e0-94a8-bb57d2a5a4e6",
5 "question": "hahahah",
6 "answer": {
7 "list": [
8 {
9 "id": "niIUTdLzPJhedJde_rPOiZsuhxMc68n6Czvz",
10 "type": 1,
11 "text": "hehehe",
12 "url": "",
13 "richText": ""
14 }
15 ],
16 "type": 0
17 },
18 "status": 0,
19 "dirId": "0",
20 "tags": [],
21 "createdUsername": "pnstest5",
22 "createdUserId": "cf7d9692703d45d1b5517a30ab3efa53",
23 "lastEditUsername": "pnstest5",
24 "lastEditUserId": "cf7d9692703d45d1b5517a30ab3efa53",
25 "lastEditTime": "2024-05-30 10:37:08",
26 "updated": "2024-05-30 10:37:08",
27 "created": "2024-05-30 10:37:08",
28 "editVersion": 0,
29 "expire": "2099-12-31 23:59:59",
30 "effect": "2024-05-30 10:37:01",
31 "channelAnswers": [],
32 "channel": "",
33 "hasActiveCopy": false,
34 "isActiveHook": 0,
35 "instruction": null,
36 "interrupted": true,
37 "exeInstruct": false,
38 "instructions": [],
39 "suggestList": []
40 },
41 "code": 200,
42 "msg": "OK"
43}
1
