See Stacksync in action with a solution architect. Book a demo ↗
Knowledge bases

Knowledge bases

List knowledge bases

GET
/v1/workspaces/{workspace_id}/knowledge-bases

The knowledge bases of the workspace in a region, newest first.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

Query Parameters

limit?Limit

Maximum number of items returned, at most 200

Range1 <= value <= 200
Default50
offset?Offset

Number of items skipped before the first one returned

Range0 <= value
Default0
region*Regions

Region whose knowledge bases are listed: besg (Europe) or usnv (United States)

Value in"besg""usnv"
search?|

Only knowledge bases whose name contains this text

Defaultnull
folder_id?|

Only the knowledge bases of this folder

Defaultnull

Response Body

OK

application/json
  1. response
data*array<>
has_more*Has More

Whether more items follow this page: request the next one with offset + limit

limit*Limit
offset*Offset
List knowledge bases
curl -X GET 'https://api.stacksync.com/v1/workspaces/0/knowledge-bases?region=besg'
{  "data": [    {      "knowledge_base_id": "<knowledge_base_id>",      "name": "<name>",      "resource_id": "<resource_id>",      "region": "<region>",      "is_shared_with_workspace": false,      "folder_id": "<folder_id>",      "created_time": "2027-01-15T09:00:00Z",      "last_modified_time": "2027-01-15T09:00:00Z"    }  ],  "has_more": false,  "limit": 0,  "offset": 0}