---
title: "Add a file to knowledge base"
method: POST
path: "/public/v1/clones/{cloneId}/files"
tags: ["Knowledge Base"]
---

# Add a file to knowledge base

`POST /public/v1/clones/{cloneId}/files`

**Not yet implemented.** Returns 501. Pending Pinecone migration.

## Path parameters

- `cloneId` string, required

## Request body

- AddKBFileRequest
  - `url` string, required
  - `name` string
  - `contentType` string

## Response `201`

File added

- KBFileSummary
  - `id` string, required
  - `name` string, required
  - `contentType` string, required
  - `url` string, required
  - `uploadUrl` string
  - `createdAt` string, date-time, required

## Other responses

- `400` — Bad request
- `401` — Missing or invalid API key
- `403` — API key lacks required scope
- `404` — Resource not found
- `501` — Not yet implemented

---

[API](https://skmtc.net/clone-global/apis/cloneforce-platform-api.md) · [All operations](https://skmtc.net/clone-global/apis/cloneforce-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clone-global/cloneforce-platform-api/versions/0841f04b6bd8/schema)
