Skip to main content
Knowledge BaseVersion: v3

Get all knowledge bases for a location by location Id (paginated)

GET/knowledge-bases

Lists knowledge bases for a sub-account (location), with optional name search and cursor pagination. WHEN TO USE: use this when you need to see which knowledge bases exist; use getKnowledgeBaseById for one; use createKnowledgeBase to add one. RETURNS: a page of knowledge bases, activeCount, hasMore, and lastKnowledgeBaseId for the next page.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:knowledge-bases.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Query Parameters

locationIdstringrequired

The location ID to retrieve knowledge bases for

Example:qIyivCmsuEOSnyoFYEej
querystring

search query for knowledge base name

Example:bot training
limitnumber

Maximum number of knowledge bases to return

Default:20
Example:20
lastKnowledgeBaseIdstring

ID of the last knowledge base from the previous page (for pagination)

Example:ZwTB8S0yo0FIBY6OPZTD

Response

Paginated knowledge bases retrieved successfully

successbooleanrequired

Success status of the operation

Example:true
dataobjectrequired

Paginated knowledge bases data