Skip to main content
POST
Create a knowledge base

Authorizations

Authorization
string
header
required

HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).

Body

application/json
name
string
required

Name of the knowledge base

Required string length: 1 - 50
Example:

"returns-policy"

sourceType
enum<string>
required

Where the content comes from; upload a file through POST /knowledge-bases/files

Available options:
URL,
CUSTOM
Example:

"URL"

text
string

Content of the knowledge base; required when sourceType is CUSTOM, rejected otherwise

Example:

"We accept returns within 30 days."

url
string

Address to read the content from; required when sourceType is URL, rejected otherwise

Example:

"https://example.com/returns"

Response

Created

data
object
required
requestId
string
required