Skip to Content
Docs

Stores one or multiple attachments without vectorization or training

POST
/api/store_attachment

Stores one or multiple attachments without vectorization or training. Supports user or API key authentication.

Personal access token scope: chat:run.

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
api_key?string

API key (optional)

file*

File(s) to upload

Response Body

Success

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