---
title: "Add Document"
method: POST
path: "/agent/knowledge-base/add-document"
---

# Add Document

`POST /agent/knowledge-base/add-document`

Add a document to the knowledge base.

Args:
    document: DocumentRequest

## Headers

- `authorization` string, required

## Request body

- DocumentRequest
  - `id` string, required
  - `type` string, nullable
  - `editable` boolean, nullable

## Response `200`

Successful Response

- DocumentResponse
  - `status` string, required
  - `message` string, required
  - `data` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/phonely/apis/fastapi.md) · [All operations](https://skmtc.net/phonely/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phonely/fastapi/versions/9bfd5599d479/schema)
