Retrieves a list of Lingma knowledge bases.
|
Supported editions |
Enterprise Dedicated Edition |
Service endpoints
Get the service endpoint and replace {domain}
in the API request syntax with your
endpoint
.
Authorization
Product | Resource | Required permission |
Lingma | knowledge base | Read-only |
Request syntax
GET https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBasesRequest | All knowledge basesSearch by nameFilter by scenario type |
Request headers | |
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. | |
Request parameters | |
organizationId The organization ID. You can obtain the organization ID from the Basic Information page in the Admin Console. | |
query A keyword for a fuzzy search by knowledge base name. | |
sceneType The scenario type. Valid values:
| |
orderBy The field to sort the results by. Valid values:
| |
sort The sorting order. Valid values:
| |
userId Specify a user ID to return only knowledge bases accessible to that user. If omitted, all knowledge bases in the organization are returned. | |
page The page number. | |
perPage The number of entries to return per page. Valid values: |
Response parameters | Response example |
accessLevel The visibility of the knowledge base. Valid values:
| |
creator The user who created the knowledge base. | |
description string The description of the knowledge base. | |
fileCount The number of files in the knowledge base. | |
gmtCreate The creation time, as a UNIX timestamp in milliseconds. | |
gmtModified The modification time, as a UNIX timestamp in milliseconds. | |
id string The ID of the knowledge base. | |
lastActivityTime The last activity time, as a UNIX timestamp in milliseconds. | |
memberCount The number of members in the knowledge base. | |
name The name of the knowledge base. | |
organizationId The ID of the organization to which the knowledge base belongs. | |
sceneType The scenario type of the knowledge base. Valid values:
| |
size The size of the knowledge base. | |
state The status of the knowledge base. Valid values:
|
Response headers
Parameter | Description | Example |
x-next-page | The next page number. | 1 |
x-page | The current page number. | 1 |
x-per-page | The number of entries per page. | 20 |
x-prev-page | The previous page number. | 1 |
x-total | The total number of entries. | 9 |
x-total-pages | The total number of pages. | 1 |
Error codes
For more information, see Error codes.