Help Center/ Cloud Search Service_KooSearch/ API Reference/ API/ APIs/ Knowledge Base Management/ Obtaining the Knowledge Base ID for Document Q&A
Updated on 2025-08-13 GMT+08:00

Obtaining the Knowledge Base ID for Document Q&A

Function

Obtain the ID of the knowledge base used for document Q&A.

URI

GET /v1/koosearch/file-answer-knowledge

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition:

Token used for API authentication. For details about how to obtain the token, see Obtaining an IAM User Token.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

repo_id

String

Definition:

Knowledge base ID.

Value range:

N/A

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Definition:

Error Code.

Value range:

N/A

error_msg

String

Definition:

Error message.

Value range:

N/A

Status code: 500

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Definition:

Error Code.

Value range:

N/A

error_msg

String

Definition:

Error message.

Value range:

N/A

Example Requests

Obtain the ID of the knowledge base used for document Q&A.

/v1/koosearch/file-answer-knowledge

Example Responses

Status code: 200

Obtain the ID of the knowledge base used for document Q&A.

{
  "repo_id" : "1235abc"
}

Status Codes

Status Code

Description

200

Obtain the ID of the knowledge base used for document Q&A.

400

Incorrect request body parameter.

500

Internal error.

Error Codes

See Error Codes.