SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
Knowledge Hub

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://app.softsolz.uk/api/v1/services/smart-chat/kb/documents/import/init

Recent Requests

Kept only in this browser
TimeStatusTook
Send a request with Try it to see it here.

Headers

Authorizationstringrequired

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

Body Params

collection_idstringrequired

Target collection id.

filesarray of objectsrequired

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

curl --request POST \
--url https://app.softsolz.uk/api/v1/services/smart-chat/kb/documents/import/init \
--header 'Authorization: Bearer sk_live_your_key' \
--header 'Content-Type: application/json' \
--data '{
"collection_id": "c0000000-0000-0000-0000-000000000001",
"files": [
{
"file_name": "big-manual.pdf",
"mime": "application/pdf",
"size_bytes": 104857600
}
],
"folder": "legal",
"tags": [
"policy"
]
}'

Credentials

Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.

Response · 201

{
"data": {
"task_id": "t0000000-0000-0000-0000-000000000001",
"uploads": [
{
"file_name": "big-manual.pdf",
"upload_url": "https://s3.example/...",
"s3_key": "pending-uploads/.../big-manual.pdf"
}
],
"complete_url": "/api/v1/services/smart-chat/kb/documents/import/<task_id>/complete"
}
}