Skip to navigation

List knowledge stores

This method returns a list of the knowledge stores in your account.

Authentication

x-api-keystring

Your API key.

Note

You can find your API key on the API Keys page.

Query parameters

pageintegerOptionalDefaults to 1

A number that identifies the page to retrieve.

Default: 1.

page_limitintegerOptionalDefaults to 10

The number of items to return on each page.

Default: 10. Max: 50.

sort_byenumOptionalDefaults to created_at

The field to sort on. The following options are available:

  • created_at: Sorts by the time, in the RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the knowledge store was created.
  • updated_at: Sorts by the time, in the RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the knowledge store was updated.

Default: created_at.

Allowed values:
sort_optionstringOptionalDefaults to desc

The sorting direction. The following options are available:

  • asc
  • desc

Default: desc.

asset_idstringOptional

Filter by the unique identifier of an asset. A knowledge store matches when it contains an item that uses the asset. The item can have any status.

If the identifier is valid but belongs to no asset, the platform returns a 200 response with an empty data array. It does not return an error. If you send an empty value or a value that is not a valid asset identifier, the platform returns a 400 error with the parameter_invalid code. It returns the same error if you repeat the parameter.

Response

The knowledge stores have been successfully retrieved.
datalist of objectsOptional
An array containing the knowledge stores.
page_infoobjectOptional
An object that provides information about pagination.

Errors

400
Bad Request Error