Skip to main content
POST
Create 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.

Body

application/json

The details of the new knowledge base.

name
string
required

The name for the new knowledge base. In the example, KNOWLEDGE_BASE_NAME stands in for the name you choose.

Example:

"KNOWLEDGE_BASE_NAME"

Response

Returns ok set to true and the new knowledge base's id.

ok
boolean
required

true when the request worked. Errors return false.

Example:

true

id
integer
required

The new knowledge base's ID. Use it as knowledge_base_id when you add data sources to it.

Example:

2451

message
string
required

A short confirmation, in plain words.

Example:

"Knowledge base has been created."

code
string
required

A code for the result. CREATE_KNOWLEDGE_BASE_SUCCESS_MESSAGE when the knowledge base was created.

Example:

"CREATE_KNOWLEDGE_BASE_SUCCESS_MESSAGE"

Last modified on October 23, 2026