---
title: "Adds attachment"
method: POST
path: "/v1/mailbox/{mailboxSelector}/attachments"
tags: ["mailbox"]
---

# Adds attachment

`POST /v1/mailbox/{mailboxSelector}/attachments`

## Request

- Base URL: `https://apiv1.linkmobility.eu/api`
- URL: `https://apiv1.linkmobility.eu/api/v1/mailbox/{mailboxSelector}/attachments`
- Auth: none declared

## Path parameters

- `mailboxSelector` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary
  - `attachmentType` string

## Response `201`

Created

- AttachmentResponseDto
  - `id` integer: id
  - `mimeType` string: mimeType
  - `size` integer: size
  - `attachmentType` string: attachment type
  - `name` string: name
  - `url` string: url
  - `links` Link[]: links
    - `rel` string
    - `href` string

## Other responses

- `500`: Internal server error

---

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