2.6.3-Document File Knowledge Query
1. Overview
Interface name: Single query of file knowledge
Version number: v1.0.0
2. Information
Request method: GET
Request URL: https://DOMAIN/openapi/v1/knowledge/file/
Domain: Refer to "Service address description"
3. Request parameters
Request header http header field:
Parameter name
Type
Required
Description
Content-Type
string
Yes
Fixedapplication/json
cybertron-robot-key
string
Yes
Robot key
cybertron-robot-token
string
Yes
Robot token
Request body field:
Parameter name
Type
Required
Description
username
string
Yes
User account
id
int
Yes
File Knowledge id
knowledge_base_id
string
Yes
Knowledge Base id
4. Response field description
HTTP status code: 200 OK
Response field description:
Field Name
Type
Description
code
string
"000000" is normal, other exceptions
message
string
Status description
data
object
message body
5. Example
Request Example:
curl 'https://_DOMAIN_/openapi/v1/knowledge/file/?username=me@host.com&knowledge_base_id=324&id=179718' \
-H 'Content-Type: application/json' \
-H 'cybertron-robot-key: l8ia2IOc*************Z724%2BU%3D' \
-H 'cybertron-robot-token: MTc0Mzk5****************************************cGRCUTg9' \
-X GET -d '{}'Response example:
{
"code": "000000",
"message": "Get Success",
"data": {
"id": 179718,
"knowledge_image_list": [],
"creator_name": "zhengdong.zhou",
"editor_name": "zhengdong.zhou",
"section_pk": "3028_0",
"content": "Document: content_article.txt\n\n****Return**[[--ContentED.LRyG4bM8gq7xI9cnNfEsX5||2022 Foreign Currency Exchange Discount Activities Overview||KM1109505||Article--]]**\n---\n**Abstract**\nThis article introduces the discount details of 2Q liquid financial management or online financial management foreign exchange transactions in 2022 effective from April 1 - June 30, 2022.\n**Detailed information**\n**Promotion period**|\n**April 1 - June 30, 2022\n----\n**Promotion code**|\n* Y22-A0-SGEN0102\n**Target Customer**| **Version 1 (On-us - Targeted Usage)**\n* The total foreign currency exchange transaction amount of the customer in the first quarter of 2022 is less than HK$1 million\n* Foreign currency exchange transactions have been conducted in the past 4-6 months, but no foreign currency exchange has been exchanged in the past 3 months\n",
"data_source": 1,
"knowledge_image": "{}",
"emb_status": 2,
"create_time": "2024-07-24 17:37:28",
"update_time": "2024-07-24 17:37:28",
"knowledge_base": 324,
"knowledge_file": 3028,
"creator": 61,
"editor": 61
}
}