Skip to main content
POST
/
api
/
v1
/
files
/
upload
Upload knowledge file
curl --request POST \
  --url https://api.kupe.in/api/v1/files/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file='@example-file' \
  --form user_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
  --form agent_id=3c90c3cc-0d44-4b50-8888-8dd25736052a
{
  "message": "<string>",
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://kupe.in/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
default:YOUR_KUPE_API_KEY
required

Kupe dashboard API key for your user.

Body

multipart/form-data
file
file
required
user_id
string<uuid> | null

Optional legacy override. Omit in normal usage; backend uses authenticated user.

agent_id
string<uuid>

Response

File processed — data is the upload row (id, original_filename, storage_file_id, …).

message
string
required
data
any | null

Payload or null