Skip to main content
POST
/
test_framework
/
v1
/
aiagents
/
{id}
/
upload_knowledge_base
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/aiagents/{id}/upload_knowledge_base/ \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --form 'files=<string>' \
  --form files.items='@example-file'
[
  {
    "id": 123,
    "agent": 123,
    "file_url": "<string>",
    "file_name": "<string>",
    "file_type": "<string>",
    "file_size": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Path Parameters

id
integer
required

A unique integer value identifying this ai agent.

Body

multipart/form-data
files
file[]
required

List of files to upload to the knowledge base

Response

id
integer
agent
integer
file_url
string

URL of the Knowledge file

file_name
string

Name of the Knowledge file

file_type
string

MIME type of the Knowledge file

file_size
integer

Size in bytes. Example: 1048576

created_at
string<date-time>

When this record was created. Example: 2024-03-15T10:30:45Z

updated_at
string<date-time>

When this record was last updated. Example: 2024-03-15T10:35:11Z