---
title: "Copy a message attachment"
method: POST
path: "/v1/mailboxes/{id}/messages/{messageId}/attachments/{attachmentId}/copy"
tags: ["Mailboxes"]
---

# Copy a message attachment

`POST /v1/mailboxes/{id}/messages/{messageId}/attachments/{attachmentId}/copy`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/messages/{messageId}/attachments/{attachmentId}/copy`
- Auth: API key in header `x-api-key`

Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (`mediaId`), so a draft can carry it. A draft that forwards a message saves each original attachment this way.

## Path parameters

- `id` string, required
- `messageId` string, required
- `attachmentId` string, required

## Response `201`

MailboxCopiedAttachment

- MailboxCopiedAttachment
  - `filename` string, required
  - `content` string, nullable
  - `mediaId` string
  - `contentType` string, required
  - `size` integer, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `409`: ConflictError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

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