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.
POST
https://staging.softsolz.uk/api/v1/services/smart-chat/kb/documents/import/initRecent 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.
Body Params
collection_idstringTarget collection id.
filesarray of objectsFiles to upload, each { file_name, mime?, size_bytes? }.
folderstring | nullOptional folder.
tagsarray of stringsOptional 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" }}