---
title: "Get pages"
method: GET
path: "/pages"
tags: ["Page"]
---

# Get pages

`GET /pages`

Returns all pages. The number of results is limited by the `limit` parameter and additional results (if available)
will be available through the `next` URL present in the `Link` response header.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to access the Confluence site ('Can use' global permission).
Only pages that the user has permission to view will be returned.

## Query parameters

- `id` integer[]
- `space-id` integer[]
- `sort` 'id' | '-id' | 'created-date' | '-created-date' | 'modified-date' | '-modified-date' | 'title' | '-title' — The sort fields for pages. The default sort direction is ascending. To sort in descending order, append a `-` character before the sort field. For example, `fieldName` or `-fieldName`.
- `status` string[]
- `title` string
- `body-format` 'storage' | 'atlas_doc_format' — The primary formats a body can be represented as. A subset of BodyRepresentation. These formats are the only allowed formats in certain use cases.
- `subtype` 'live' | 'page'
- `cursor` string
- `limit` integer

## Response `200`

Returned if the requested pages are returned.

- object
  - `results` PageBulk[]
    - `id` string — ID of the page.
    - `status` 'current' | 'draft' | 'archived' | 'historical' | 'trashed' | 'deleted' | 'any' — The status of the content.
    - `title` string — Title of the page.
    - `spaceId` string — ID of the space the page is in.
    - `parentId` string — ID of the parent page, or null if there is no parent page.
    - `parentType` 'page' | 'whiteboard' | 'database' | 'embed' | 'folder' — Content type of the parent, or null if there is no parent.
    - `position` integer, nullable — Position of child page within the given parent page tree.
    - `authorId` string — The account ID of the user who created this page originally.
    - `ownerId` string, nullable — The account ID of the user who owns this page.
    - `lastOwnerId` string, nullable — The account ID of the user who owned this page previously, or null if there is no previous owner.
    - `subtype` string, nullable — The subtype of the page.
    - `createdAt` string, date-time — Date and time when the page was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
    - `version` Version
      - `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.
    - `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` AbstractPageLinks
      - `webui` string — Web UI link of the content.
      - `editui` string — Edit UI link of the content.
      - `tinyui` string — Web UI link of the content.
  - `_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.

---

[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/versions/c4bd1ed570f2/schema)
