Skip to content

Powered by Grav + Helios

List Pages

List Pages

GET /pages
List pages with filtering, sorting, and pagination.

Parameters

Name Type Description
page optional integer Page number for pagination (default: 1)
per_page optional integer Number of results per page (default: 20, max: 100)
sort optional string Sort field: date, title, slug, modified, or order
order optional string Sort direction: asc or desc
published optional boolean Filter by published state
template optional string Filter by page template name
routable optional boolean Filter by routable state
visible optional boolean Filter by visible state
parent optional string Filter by direct parent route
children_of optional string Filter to descendants of a given route
JSON
{"data": [{"route": "/blog", "slug": "blog", "title": "Blog", "template": "blog", "published": true}], "meta": {"total": 42, "page": 1, "per_page": 20}}

Response Codes

200 Success
401 Unauthorized
403 Forbidden