A I Hub Knowledge Base

Knowledge list

GET
/datasets

This API retrieves a list of all existing knowledge bases, including their details such as names, IDs, and creation dates, to help you manage and organize their data sources.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Query Parameters

page?string

Page number

Default"1"
limit?string

Number of items returned, default 20, range 1-100

Default"20"

Response Body

application/json

application/json

curl -X GET "https://example.com/datasets"
"{\n  \"data\":\n    {\n      \"id\": \"8490ef30-932d-466e-8cdc-bca34e2fec24\",\n      \"name\": \"test\",\n      \"description\": null,\n      \"provider\": \"vendor\",\n      \"permission\": \"only_me\",\n      \"data_source_type\": null,\n      \"indexing_technique\": null,\n      \"app_count\": 0,\n      \"document_count\": 0,\n      \"word_count\": 0,\n      \"created_by\": \"a952836f-d846-4446-a647-465acf78eea9\",\n      \"created_at\": 1727642722,\n      \"updated_by\": \"a952836f-d846-4446-a647-465acf78eea9\",\n      \"updated_at\": 1727642722,\n      \"embedding_model\": null,\n      \"embedding_model_provider\": null,\n      \"embedding_available\": true,\n      \"retrieval_model_dict\": {\n        \"search_method\": \"semantic_search\",\n        \"reranking_enable\": false,\n        \"reranking_model\": {\n          \"reranking_provider_name\": \"\",\n          \"reranking_model_name\": \"\"\n        },\n        \"top_k\": 2,\n        \"score_threshold_enabled\": false,\n        \"score_threshold\": null\n      },\n  \"has_more\": false,\n  \"limit\": 20,\n  \"total\": 1,\n  \"page\": 1\n}"