---
title: "Get attachment versions"
method: GET
path: "/attachments/{id}/versions"
tags: ["Version"]
---

# Get attachment versions

`GET /attachments/{id}/versions`

Returns the versions of specific attachment.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to view the attachment and its corresponding space.

## Path parameters

- `id` string, required

## Query parameters

- `cursor` string
- `limit` integer
- `sort` 'modified-date' | '-modified-date' — The sort fields for versions. The default sort direction is ascending. To sort in descending order, append a `-` character before the sort field. For example, `fieldName` or `-fieldName`.

## Response `200`

Returned if the requested attachment versions are returned.

- object
  - `results` AttachmentVersion[]
    - `createdAt` string, date-time — Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
    - `message` string — Message associated with the current version.
    - `number` integer — The version number.
    - `minorEdit` boolean — Describes if this version is a minor version. Email notifications and activity stream updates are not created for minor versions.
    - `authorId` string — The account ID of the user who created this version.
    - `attachment` VersionedEntity
      - `title` string — Title of the entity.
      - `id` string — ID of the entity.
      - `body` BodyBulk — Contains fields for each representation type requested.
        - `storage` BodyType
          - `representation` string — Type of content representation used for the value field.
          - `value` string — Body of the content, in the format found in the representation field.
        - `atlas_doc_format` BodyType
          - `representation` string — Type of content representation used for the value field.
          - `value` string — Body of the content, in the format found in the representation field.
  - `_links` MultiEntityLinks
    - `next` string — Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This property will not be present if there is no additional data available.
    - `base` string — Base url of the Confluence site.

## Other responses

- `400` — Returned if an invalid request is provided.
- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `404` — Returned if the calling user does not have permission to view the requested page or the page was not found.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api-v2/revisions/c4bd1ed570f2/schema)
