---
title: "Upload Attachment"
method: POST
path: "/v1/attachment/upload"
tags: ["attachment"]
---

# Upload Attachment

`POST /v1/attachment/upload`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/attachment/upload`
- Auth: HTTP bearer

## Request body `multipart/form-data`

- BodyUploadAttachmentV1AttachmentUploadPost
  - `file` string, binary, required: Image/video/audio/file to register with Meta
  - `attachment_type` 'image' | 'video' | 'audio' | 'file', required
  - `channel_id` string, required

## Response `200`

Successful Response

- UploadAttachmentResponse
  - `id` integer, required
  - `meta_attachment_id` string, required
  - `file_url` string, required
  - `type` 'image' | 'video' | 'audio' | 'file', required
  - `channel_id` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
