Skip to Content
Docs

Uploads a file to be vectorized and indexed

POST
/api/upload

Uploads a file to be vectorized and indexed. Honors an optional Idempotency-Key header: a repeat request with the same key within 24h returns the original cached response without re-enqueuing.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
file*

File(s) to upload

name*string

Job name

user*string

User ID

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/upload' \  -H 'Content-Type: application/json' \  -d '{  "file": {},  "name": "string",  "user": "string"}'
Example Response200
Empty