Chat9
APIDocuments

Upload Document Route

Upload a document (protected JWT, multipart/form-data). Returns 201 Created. Errors: 400 unsupported type/size, 404 no tenant, 422 parse error.

POST
/documents
/documents

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

multipart/form-dataRequired

file
Required
File

Format: "binary"
curl -X POST "https://api.getchat9.live/documents" \
  -H "Authorization: Bearer <token>" \
  -F file="string"

Successful Response

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "filename": "string",
  "file_type": "string",
  "status": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "health_status": {}
}