SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
smart chat

Start a presigned upload task for large files; returns one PUT URL per file.

Start a presigned upload task for large files; returns one PUT URL per file.

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

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.

Body Params

collection_idstring

Target collection id.

filesarray of objects

Files to upload, each { file_name, mime?, size_bytes? }.

folderstring | null

Optional folder.

tagsarray of strings

Optional tags.

Response

Response Body

task_idstringThe created task id.
uploadsarray of objectsPer-file { file_name, upload_url (presigned PUT, 1h), s3_key }.
complete_urlstringPOST here after all files are PUT to finalise.

Request

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

Credentials

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

Response · 201

{
"data": {
"task_id": "string",
"uploads": [],
"complete_url": "string"
}
}