---
title: "Upload Knowledge File Chunk"
method: PUT
path: "/v1/knowledge-files/{id}/upload"
tags: ["Agent Knowledge Files"]
---

# Upload Knowledge File Chunk

`PUT /v1/knowledge-files/{id}/upload`

## Request

- Base URL: `https://api.bey.dev`
- URL: `https://api.bey.dev/v1/knowledge-files/{id}/upload`
- Auth: API key in header `x-api-key`

Upload a single chunk of a PDF knowledge file.

Send the raw chunk bytes as the request body. Chunks are zero-indexed via
the `chunk_number` query parameter and can be uploaded in any order.

## Path parameters

- `id` string, required: Knowledge File ID.

## Query parameters

- `chunk_number` integer, required: Chunk number, starting from 0.

## Response `204`

Successful Response

## Other responses

- `401`: Authentication failed. The `x-api-key` header is missing or the provided API key is invalid.
- `402`: The plan's usage limit has been reached, or the requested feature requires a plan upgrade.
- `403`: The API key is valid but not permitted to perform this action, because the resource belongs to someone else.
- `404`: The requested resource does not exist or is not accessible with this API key.
- `422`: The request is malformed. `detail` lists each field that failed validation, where it was located, and why.
- `429`: The plan's limit on the number of concurrent sessions has been reached.

## Changes

- **2026-10-20** `0469e200c235`: 1 info
  - added the non-success response with the status `402`
- **2026-10-16** `c8f80740b51c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bey-dev/apis/beyond-presence-api/changes/v1/knowledge-files/:id/upload/put.md)

---

[API](https://skmtc.dev/bey-dev/apis/beyond-presence-api.md) - [All operations](https://skmtc.dev/bey-dev/apis/beyond-presence-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bey-dev/apis/beyond-presence-api/revisions/2d37d86bc5c1?raw)
