---
title: "Get all metadata for an expanded attachment"
method: GET
path: "/rest/api/2/attachment/{id}/expand/human"
tags: ["Issue attachments"]
---

# Get all metadata for an expanded attachment

`GET /rest/api/2/attachment/{id}/expand/human`

Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned and metadata for the ZIP archive. Currently, only the ZIP archive format is supported.

Use this operation to retrieve data that is presented to the user, as this operation returns the metadata for the attachment itself, such as the attachment's ID and name. Otherwise, use [ Get contents metadata for an expanded attachment](#api-rest-api-2-attachment-id-expand-raw-get), which only returns the metadata for the attachment's contents.

This operation can be accessed anonymously.

**[Permissions](#permissions) required:** For the issue containing the attachment:

 *  *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in.
 *  If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue.
 *  If attachments are added in private comments, the comment-level restriction will be applied.

## Path parameters

- `id` string, required

## Response `200`

Returned if the request is successful. If an empty list is returned in the response, the attachment is empty, corrupt, or not an archive.

- AttachmentArchiveMetadataReadable — Metadata for an archive (for example a zip) and its contents.
  - `entries` AttachmentArchiveItemReadable[] — The list of the items included in the archive.
    - `index` integer — The position of the item within the archive.
    - `label` string — The label for the archive item.
    - `mediaType` string — The MIME type of the archive item.
    - `path` string — The path of the archive item.
    - `size` string — The size of the archive item.
  - `id` integer — The ID of the attachment.
  - `mediaType` string — The MIME type of the attachment.
  - `name` string — The name of the archive file.
  - `totalEntryCount` integer — The number of items included in the archive.

## Other responses

- `401` — Returned if the authentication credentials are incorrect or missing.
- `403` — The user does not have the necessary permission.
- `404` — Returned if: * the attachment is not found. * attachments are disabled in the Jira settings.
- `409` — Returned if the attachment is an archive, but not a supported archive format.

---

[API](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api.md) · [All operations](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api/revisions/7e9af75061ea/schema)
