GET/spaces/api/v2/spaces/{spaceID}/pages.json

Returns all pages the user has access to in a Space as

a nested tree. The tree contains two main nodes, pages, which contains open pages with no privacy set as well as private, which contains pages that the user can access, but are restricted to other users.

Path Params

  • Name
    spaceID
    Type
    integer
    required
    Description

Responses

  • Code
    200
    Type
    object
    Schema
    Description
    200 OK
  • Code
    404
    Type
    object
    Schema
    Description
    404 Not Found
  • Code
    500
    Type
    object
    Schema
    Description
    500 Internal Server Error

Examples

200 OK

SpaceContents
{
  "pages": {
    "pages": {
      "trash": [
        {
          "childPages": [
            {
              "id": 0,
              "slug": "string",
              "title": "string",
              "updatedAt": "2024-04-24T00:52:20.157Z"
            }
          ],
          "id": 0,
          "slug": "string",
          "title": "string",
          "updatedAt": "2024-04-24T00:52:20.157Z"
        }
      ]
    },
    "private": [
      {
        "trash": [
          {
            "childPages": [
              {
                "id": 0,
                "slug": "string",
                "title": "string",
                "updatedAt": "2024-04-24T00:52:20.157Z"
              }
            ],
            "id": 0,
            "slug": "string",
            "title": "string",
            "updatedAt": "2024-04-24T00:52:20.157Z"
          }
        ]
      }
    ]
  }
}