---
title: "Upload attachments"
method: POST
path: "/threads/{thread-id}/attachments"
tags: ["Threads"]
---

# Upload attachments

`POST /threads/{thread-id}/attachments`

## Request

- Base URL: `https://api.korey.ai/api/v1`
- URL: `https://api.korey.ai/api/v1/threads/{thread-id}/attachments`
- Auth: HTTP bearer

Uploads files to a thread you own. Use the returned IDs in attachment_ids when sending a message. Uploads alone do not send a message. Accepts the same file types and limits as the web app: up to 5 files per upload request and 25 uploaded files total per thread. A message may reference files from multiple upload requests. Use a distinct multipart field name for each file, such as attachments[0], attachments[1].

## Path parameters

- `thread-id` string, uuid, required

## Response `201`

Created

- object[]
  - `id` string, uuid, required
  - `filename` string, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized — Bearer token required or invalid
- `403`: Forbidden
- `404`: Not found
- `422`: Unprocessable

---

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