---
title: "UploadAttachment"
method: POST
path: "/v3/conversations/{conversationId}/attachments"
tags: ["Conversations"]
---

# UploadAttachment

`POST /v3/conversations/{conversationId}/attachments`

Upload an attachment directly into a channel's blob storage.

This is useful because it allows you to store data in a compliant store when dealing with enterprises.

The response is a ResourceResponse which contains an AttachmentId which is suitable for using with the attachments API.

## Path parameters

- `conversationId` string, required

## Request body

- AttachmentData — Attachment data
  - `type` string — Content-Type of the attachment
  - `name` string — Name of the attachment
  - `originalBase64` string, byte — Attachment content
  - `thumbnailBase64` string, byte — Attachment thumbnail

## Response `200`

An object will be returned containing the ID for the resource.

- ResourceResponse — A response containing a resource ID
  - `id` string — Id of the resource

## Other responses

- `201` — A ResourceResponse object will be returned containing the ID for the resource.
- `202` — An object will be returned containing the ID for the resource.
- `default` — The operation failed and the response is an error object describing the status code and failure.

---

[API](https://skmtc.net/poshbotio/apis/microsoft-bot-connector-api-v3-0.md) · [All operations](https://skmtc.net/poshbotio/apis/microsoft-bot-connector-api-v3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poshbotio/microsoft-bot-connector-api-v3-0/versions/ea45ea47a3fb/schema)
