Create knowledge source
Knowledge Sources
Create knowledge source
Create an inline text or file-based knowledge source for your Conductor account using the Content API.
POST
Create knowledge source
Create a knowledge source in one of two ways:
- Send inline text as
application/json. - Upload a supported file as
multipart/form-data. Supported formats are PDF, TXT, XLSX, XLS, CSV, Markdown, DOC, and DOCX.
Create an inline text source
Usekind: "TEXT" and provide the source text in the JSON request body.
Upload a file source
Send the file in the requiredfile form field. You can optionally provide fileName to override the uploaded file’s name. Do not send kind or text when uploading a file.
Authorizations
Conductor API token, sent as Bearer <your-api-token>. Generate a token from Integrations > API > Create API Token.
Path Parameters
Account identifier
Body
Response
File-based knowledge source created and processed
An account-level source used to inform generated content.
Available options:
FILE, TEXT The uploaded filename for a file-based knowledge source.
The supplied or extracted text content.
Available options:
PENDING_UPLOAD, STORED, EXTRACTED, ERROR 