---
title: "Upload Workspace Knowledge Base Document"
method: POST
path: "/api/workspaces/{workspace_id}/knowledge-base/documents"
---

# Upload Workspace Knowledge Base Document

`POST /api/workspaces/{workspace_id}/knowledge-base/documents`

## Path parameters

- `workspace_id` string, required

## Response `201`

Successful Response

- KnowledgeBaseDocumentUploadResponse
  - `success` boolean
  - `id` string, required
  - `url` string, nullable
  - `name` string, required
  - `size` integer, nullable
  - `uploadedAt` string, date-time, required
  - `operation` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.dev/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outcallerai/fastapi/revisions/6155db644bab/schema)
