SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
smart chat

Upload a single file (multipart/form-data: a "file" part up to 25 MB plus a "collection_id" field) into the Knowledge Base. Returns an async task.

Upload a single file (multipart/form-data: a "file" part up to 25 MB plus a "collection_id" field) into the Knowledge Base. Returns an async task.

POSThttps://staging.softsolz.uk/api/v1/services/smart-chat/kb/documents/import

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Response

Response Body

task_idstringThe enqueued ingestion task id; poll via GET /tasks/:task_id.
statusstringInitial task status.

Request

import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.smartChat.importKbDocument({});
console.log(result);

Credentials

Sent as a Bearer token. Stored only in your browser.

Response · 201

{
"data": {
"task_id": "string",
"status": "string"
}
}