Skip to main content
POST
Add domain data source

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 to add the domain to.

Body

application/json

The domain to add and how to handle it.

type
string
required

The kind of data source. Set it to domain.

Example:

"domain"

url
string<uri>
required

The website to add. It must be a valid web address, for example https://wotnot.io.

Example:

"https://wotnot.io"

exclude_urls
string
required

Pages on the domain to leave out. The example sends an empty value ("").

Example:

""

refresh_frequency
string | null
required

How often the data source is refreshed. The example sends null.

Example:

null

Response

Returns ok set to true with a domain_id and a request_id.

ok
boolean
required

true when the request worked. Errors return false.

Example:

true

domain_id
integer
required

The ID of the domain you added.

Example:

8

request_id
string
required

An ID for this request.

Example:

"3QWuobWJE3jF065037422196qAdTZ2Ct"

Last modified on October 23, 2026