---
title: "Upload File"
method: POST
path: "/chatbots/{chatbot_id}/files"
tags: ["Chatbot Files"]
---

# Upload File

`POST /chatbots/{chatbot_id}/files`

## Request

- Base URL: `https://app.boei.help/api/v1`
- URL: `https://app.boei.help/api/v1/chatbots/{chatbot_id}/files`
- Auth: HTTP bearer

Upload a file for the chatbot to train on. Supported formats: PDF, Word (doc/docx), Excel (xls/xlsx), PowerPoint (ppt/pptx), images, audio, text, CSV, JSON, XML, ZIP, Outlook (.msg), and EPUB.
Max file size: 5MB.

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: The file to upload (max 5MB).

## Response `201`

- object
  - `message` string
  - `file` object
    - `id` string
    - `original_name` string
    - `file_type` string
    - `mime_type` string
    - `file_size` integer
    - `status` string
    - `created_at` string

---

[API](https://skmtc.dev/boei/apis/boei-api.md) - [All operations](https://skmtc.dev/boei/apis/boei-api/llms.txt) - [OpenAPI document](https://skmtc.dev/boei/apis/boei-api/revisions/fc439667d2d4?raw)
