---
title: "List attachments"
method: GET
path: "/me/messages/{messageId}/attachments"
tags: ["me.message"]
---

# List attachments

`GET /me/messages/{messageId}/attachments`

Retrieve a list of attachment objects attached to a message.

## Query parameters

- `$top` integer
- `$skip` integer
- `$search` string
- `$filter` string
- `$count` boolean
- `$orderby` string[]
- `$select` string[]
- `$expand` string[]

## Response `2XX`

Retrieved collection

- MicrosoftGraphAttachmentCollectionResponse
  - `@odata.nextLink` string, nullable
  - `@odata.count` integer, nullable
  - `value` MicrosoftGraphAttachment[]
    - `@odata.type` string
    - `id` string — The unique identifier for an entity. Read-only
    - `lastModifiedDateTime` string, date-time, nullable — The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
    - `size` number — The length of the attachment in bytes
    - `name` string, nullable — The attachment's file name
    - `isInline` boolean — true if the attachment is an inline attachment; otherwise, false
    - `contentType` string, nullable — The MIME type
    - `contentBytes` string, base64url, nullable — The base64-encoded contents of the file attachment. Required only for file attachments

## Other responses

- `4XX` — error
- `5XX` — error

---

[API](https://skmtc.net/ballerina-platform/apis/microsoft-graph-mail-api.md) · [All operations](https://skmtc.net/ballerina-platform/apis/microsoft-graph-mail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ballerina-platform/microsoft-graph-mail-api/versions/af62694b9f2d/schema)
