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.
POST
https://staging.softsolz.uk/api/v1/services/smart-chat/kb/documents/importRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Headers
AuthorizationstringrequiredBearer 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" }}