Skip to main content
GET
/
v6
/
pages
List Pages
curl --request GET \
  --url https://api.makeswift.com/v6/pages \
  --header 'x-api-key: <api-key>'
{
  "object": "list",
  "data": [
    {
      "object": "page",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "pathname": "furniture",
      "canonicalUrl": "<unknown>",
      "title": "<unknown>",
      "description": "<unknown>",
      "socialImageUrl": "<unknown>",
      "sitemapPriority": "<unknown>",
      "sitemapFrequency": "always",
      "createdAt": "<unknown>",
      "updatedAt": "<unknown>",
      "publishedAt": "<unknown>",
      "isOnline": true,
      "excludedFromSearchEngines": "<unknown>",
      "localizations": [
        {
          "pathname": "<string>",
          "locale": "<string>",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ],
      "locale": "<string>"
    }
  ],
  "hasMore": true
}

Authorizations

x-api-key
string
header
required

The App API key.

(e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

Query Parameters

siteId
string<uuid>
required

The site ID to list pages from.

limit
number
default:20

The maximum number of pages to return.

Required range: 1 <= x <= 100
starting_after
string<uuid>

The pagination cursor. This is used to indicate what ID to list from.

pathPrefix
string
default:/

The filter that limits pages to only those with a pathname that begins with this value.

sortBy
enum<string>
default:path

The field to sort pages by.

Available options:
title,
path,
description,
updatedAt,
createdAt
sortDirection
enum<string>
default:asc

The sort direction.

Available options:
asc,
desc
includeOffline
enum<string>
default:false

The flag that determines whether to include offline pages in the results.

Available options:
true,
false
locale
string

The locale code to filter pages by.

versionRef
enum<string>
default:ref:draft

The version reference to retrieve pages from. Defaults to ref:draft if not provided.

Supported formats:

  • ref:draft - Draft/working version
  • ref:live - Live/published version
Available options:
ref:live,
ref:draft

Response

object
enum<string>
required
Available options:
list
Example:

"list"

data
object[]
required
hasMore
boolean
required

The flag that indicates whether there are more pages available.