---
title: "Upload Chat Attachment"
method: POST
path: "/chat-attachments"
tags: ["chat"]
---

# Upload Chat Attachment

`POST /chat-attachments`

Accept one image for a chat message and return the id to reference it by.

## Response `200`

Successful Response

- ChatAttachmentResponse
  - `id` string, required
  - `mime_type` string, required
  - `width` integer, required
  - `height` integer, required
  - `size_bytes` integer, required
  - `url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stardrift/apis/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
