Knowledge BaseUpload a knowledge base file

Upload a knowledge base file

Upload a file with multipart/form-data. Processing may continue after upload.

curl -X POST "https://api.talkturo.com/api/assistants/123e4567-e89b-12d3-a456-426614174000/knowledge-base" \
  --form file=example_string
{
  "success": true,
  "file": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "filename": "John Doe",
    "size": 3.14,
    "type": "example_string",
    "status": "example_string",
    "created_at": "2024-12-25T10:00:00Z"
  }
}
POST
/assistants/{assistantId}/knowledge-base
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (cookie: sb-access-token)
sb-access-tokenstring
Required

Authenticated Talkturo web session cookie (Supabase httpOnly session). Browser clients typically send this automatically after sign-in. Related refresh cookies may also be present depending on the client.

Authenticated Talkturo web session cookie (Supabase httpOnly session). Browser clients typically send this automatically after sign-in. Related refresh cookies may also be present depending on the client.
path
assistantIdstring
Required

Assistant UUID

Format: uuid
Content-Typestring
Required

The media type of the request body

Options: multipart/form-data
filestring
Required
Format: binary
Request Preview
Response

Response will appear here after sending the request

Authentication

path
parameterstring
Required

API Key for authentication. Authenticated Talkturo web session cookie (Supabase httpOnly session). Browser clients typically send this automatically after sign-in. Related refresh cookies may also be present depending on the client.

Path Parameters

Body

multipart/form-data

Responses

successboolean
fileobject