---
title: "Upload Document"
method: POST
path: "/api/admin/knowledge-base/{knowledge_base_id}/documents"
tags: ["admin-knowledge-base"]
---

# Upload Document

`POST /api/admin/knowledge-base/{knowledge_base_id}/documents`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/admin/knowledge-base/{knowledge_base_id}/documents`
- Auth: none declared

## Path parameters

- `knowledge_base_id` string, required

## Request body `multipart/form-data`

- BodyUploadDocumentApiAdminKnowledgeBaseKnowledgeBaseIdDocumentsPost
  - `file` string, binary, required
  - `mime_type` string, required

## Response `201`

Successful Response

- AdminUploadDocumentResponse
  - `success` boolean, required
  - `message` string, required
  - `source_id` string, nullable

## Other responses

- `422`: Validation Error

---

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