Skip to main content
GET
Get knowledge base

Authorizations

Authorization
string
header
required

All of WotNot's APIs use Bearer token authentication. Send your account token as Bearer <token>. You can find it in Settings > Account Settings > Developer. Keep it on your server: anyone who has it can call the API as your account.

Path Parameters

knowledge_base_id
string
required

The ID of the knowledge base you want to fetch.

Body

application/json

Which page of data sources to return.

limit
integer
required

How many data sources to return in one page, for example 100.

Example:

100

offset
integer
required

Where to start in the list of data sources, for example 1.

Example:

1

Response

Returns the knowledge base's details, one page of its data sources in data_source, and pagination to help you fetch the rest.

ok
boolean
required

true when the request worked. Errors return false.

Example:

true

id
integer
required

The knowledge base's ID.

Example:

2451

name
string
required

The knowledge base's name.

Example:

"KNOWLEDGE_BASE_NAME"

total_tokens
integer
required

The total number of tokens used in the knowledge base.

Example:

18450

total_data_sources
integer
required

How many data sources the knowledge base has in total.

Example:

12

data_source
object[]
required

One page of the knowledge base's data sources. Use pagination to get the others.

domains
object[]
required

The domains added to the knowledge base. Empty ([]) in the example.

pagination
object
required

Where this page sits in the full list of data sources.

last_trained_at
string
required

When the knowledge base was last trained, in the format YYYY-MM-DD HH:MM:SS.ffffff, for example 2024-12-27 09:13:26.905000.

Example:

"2024-12-27 09:13:26.905000"

Last modified on October 23, 2026