---
ai:
  exclude: true
search:
  tags:
    - attachment
    - GET
seo:
  description: >-
    Tries to expand an attachment. Output… Reference for the GET
    /api/2/attachment/{id}/expand/raw endpoint in the Jira Software Data Center
    REST API Reference.
sidebar:
  label: Get raw attachment expansion
  badge: GET
title: Get raw attachment expansion
type: openapi-operation
---
Tries to expand an attachment. Output is raw and should be backwards-compatible through the course of time.

`GET /api/2/attachment/{id}/expand/raw`

**Responses**

- `200` — JSON representation of the attachment expanded contents. Empty entry list means that attachment cannot be expanded. It's either empty, corrupt or not an archive at all.
- `403` — The calling user is not permitted to view the requested attachment.
- `404` — Any of: there is no attachment with the requested id, attachments feature is disabled
- `409` — The archive format is not supported. since v6.4

Response example, 200:

```json
{
  "entries": [
    {
      "entryIndex": 0,
      "name": "Allegro from Duet in C Major.mp3",
      "size": 1430174,
      "mediaType": "audio/mpeg"
    },
    {
      "entryIndex": 1,
      "name": "lrm.rtf",
      "size": 331,
      "mediaType": "text/rtf"
    }
  ],
  "totalEntryCount": 24
}
```
