PPylon Developers
ApiPublic Sites

List published pages

Returns all published pages for a site resolved by domain. Used for sitemap generation.

GET
/api/v1/sites/pages
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Query Parameters

domain*string

Response Body

application/json

application/problem+json

curl -X GET "https://loading/api/v1/sites/pages?domain=string"
{
  "site": {
    "name": "string",
    "slug": "string",
    "defaultLocale": "string",
    "enabledLocales": [
      "string"
    ]
  },
  "pages": [
    {
      "slug": "string",
      "title": "string",
      "publishedAt": "2019-08-24T14:15:22Z",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "parentPageId": null,
      "depth": 0
    }
  ]
}
{
  "code": "string",
  "message": "string"
}