---
title: "Create attachment"
method: POST
path: "/conversations/{id}/messages/{messageId}/attachments"
tags: ["conversations"]
---

# Create attachment

`POST /conversations/{id}/messages/{messageId}/attachments`

Create a direct-upload target for a message attachment.

Use this endpoint before uploading an image attachment for a message.

Behavior:
- Validates conversation membership and message ownership.
- Returns upload metadata for the attachment image.

## Path parameters

- `id` string, required — Conversation ID
- `messageId` string, required — Message ID

## Response `200`

Upload URL

- ImageUpload — Direct upload URL for an image
  - `id` string, required — Image identifier
  - `uploadURL` string, uri, required — URL to upload the image

## Other responses

- `404` — Conversation or message not found

---

[API](https://skmtc.net/managem/apis/managem-api.md) · [All operations](https://skmtc.net/managem/apis/managem-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/managem/managem-api/versions/5ed45d6a9e2f/schema)
