Finalise a presigned upload task once all files have been PUT to S3.
Finalise a presigned upload task once all files have been PUT to S3.
POST
https://app.softsolz.uk/api/v1/services/smart-chat/kb/documents/import/{task_id}/completeRecent Requests
Kept only in this browserTimeStatusTook
Send a request with Try it to see it here.
Path Params
task_idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Response
Response Body
task_idstringThe task id.statusstringStatus after finalising.filesarray of objectsVerified files { s3_key, file_name, byte_size }.Request
curl --request POST \ --url https://app.softsolz.uk/api/v1/services/smart-chat/kb/documents/import/{task_id}/complete \ --header 'Authorization: Bearer sk_live_your_key'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 · 200
{ "data": { "task_id": "t0000000-0000-0000-0000-000000000001", "status": "received", "files": [] }}