---
title: "GetAttachment"
method: GET
path: "/v3/attachments/{attachmentId}/views/{viewId}"
tags: ["Attachments"]
---

# GetAttachment

`GET /v3/attachments/{attachmentId}/views/{viewId}`

## Request

- Base URL: `https://api.botframework.com`
- URL: `https://api.botframework.com/v3/attachments/{attachmentId}/views/{viewId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/poshbotio/apis/microsoft-bot-connector-api-v3-0/docs/v3/attachments/:attachmentId/views/:viewId/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the named view as binary content

## Path parameters

- `attachmentId` string, required
- `viewId` string, required

## Response `200`

Attachment stream

- string, binary

## Other responses

- `301`: The Location header describes where the content is now.
- `302`: The Location header describes where the content is now.
- `default`: The operation failed and the response is an error object describing the status code and failure.

---

[API](https://skmtc.dev/poshbotio/apis/microsoft-bot-connector-api-v3-0.md) - [All operations](https://skmtc.dev/poshbotio/apis/microsoft-bot-connector-api-v3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/poshbotio/apis/microsoft-bot-connector-api-v3-0/revisions/ea45ea47a3fb?raw)
