---
title: "POST /api/channels/{channel_id}/attachments/"
method: POST
path: "/api/channels/{channel_id}/attachments/"
tags: ["api"]
---

# POST /api/channels/{channel_id}/attachments/

`POST /api/channels/{channel_id}/attachments/`

## Path parameters

- `channel_id` string, required

## Request body

- UploadAttachmentRequestSchema
  - `files` UploadAttachmentRequest[], required
    - `id` string
    - `filename` string, required
    - `file_size` integer, required
    - `is_clip` boolean
    - `original_content_type` string

## Response `200`

- UploadAttachmentResponseSchema
  - `attachments` UploadAttachmentResponse[], required
    - `id` string
    - `upload_url` string, required
    - `upload_filename` string, required
    - `original_content_type` string

## Other responses

- `400`
- `404` — No description available

## Changes

- **2026-08-02** `034b4e879932` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/spacebarchat/apis/spacebar-server/changes/api/channels/:channel_id/attachments/post.md)

---

[API](https://skmtc.dev/spacebarchat/apis/spacebar-server.md) · [All operations](https://skmtc.dev/spacebarchat/apis/spacebar-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spacebarchat/spacebar-server/revisions/ab03d843e434/schema)
