---
title: "Where to PUT a file: the bucket itself, or the API when the bucket has no public address"
method: POST
path: "/v1/admin/knowledge/uploads"
---

# Where to PUT a file: the bucket itself, or the API when the bucket has no public address

`POST /v1/admin/knowledge/uploads`

## Request

- Base URL: `https://api.octapi.app`
- URL: `https://api.octapi.app/v1/admin/knowledge/uploads`
- Auth: HTTP bearer

## Request body

- object
  - `filename` string, required
  - `mime` string, required
  - `size` integer, required

## Response `200`

Default Response

- object
  - `key` string, required
  - `url` string, required
  - `method` 'PUT', required
  - `headers` object, required
  - `direct` boolean, required

---

[API](https://skmtc.dev/octapi/apis/octapi-api.md) · [All operations](https://skmtc.dev/octapi/apis/octapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/octapi/apis/octapi-api/revisions/580afda787d2?raw)
