Skip to content

Pages, Entries & Schema API

All built-in endpoints live beneath your configured api_prefix (default /api/v1).

Method & Path Access Description
GET / Public API root index (service, version, providers, resources).
GET /health Public Health check returning status and active mode (hybrid or full).
Method & Path Access / Scope Parameters & Behavior
GET /pages Public / Viewable ?template=, ?parent=, ?q=, ?sort=, ?page=, ?limit=, ?start=, ?fields=, ?depth=, ?lang=
POST /pages Auth + pages:write Creates a ProcessWire page (blocked in $config->demo).
GET /pages/{id} Public / Viewable Fetches a single page by numeric ID or path (supports ?preview_token=).
PATCH|PUT /pages/{id} Auth + pages:write Updates editable fields respecting PageAccessPolicy.
DELETE /pages/{id} Auth + pages:write Moves page to trash, or permanently deletes with ?permanent=1.
GET /pages/{id}/children Public / Viewable Lists viewable child pages with standard pagination and ?fields=.
Method & Path Access / Scope Capabilities
GET /entries Public / Blueprint RBAC Lists public blueprints or cross-blueprint search (?q=, ?types=, ?kinds=, ?limit=).
GET /entries/{type} Public / entries:read Collection/single query: ?page=, ?limit= (<= 1000), ?cursor=, ?sort=, ?q=, ?view=, ?with= (<= 5), ?filter[field][op]=, ?distinct=, ?groupBy=, ?aggregate= (<= 10), ?draft=1, ?preview_token=, ?format=csv|ics (or /calendar.ics, /export.ics, /export.csv).
POST /entries/{type} Auth + entries:write Creates a new EntryItem.
PATCH|PUT /entries/{type} Auth + entries:write Updates a single blueprint (supports ?draft=1 and optimistic locking via _expected_modified).
POST|PATCH|PUT|DELETE /entries/{type}/batch Auth + entries:write Atomic batch create/upsert, batch update, or batch delete/soft-trash (?trash=1, MAX_BATCH_ITEMS = 100).
GET|PATCH|PUT|DELETE /entries/{type}/{id} Blueprint RBAC / entries:write Fetch by UUIDv7 or slug, update (?draft=1, _expected_modified), or delete/soft-trash.
GET /entries/{type}/{id}/revisions Auth + entries:read Lists revision snapshots (?limit=).
GET /entries/{type}/{id}/revisions/{revId}/diff Auth + entries:read Compares a revision snapshot against the live record.
POST /entries/{type}/{id}/revisions/{revId}/restore Auth + entries:write Restores a full revision or selected fields[].
POST /entries/{type}/{id}/publish-draft & /discard-draft Auth + entries:write Promotes or discards a working draft.
Method & Path Output
GET /schema or GET /schema/openapi.json Complete OpenAPI 3.1.0 specification across all registered providers and blueprints.
GET /schema/typescript or GET /schema/{provider}.d.ts Generated TypeScript .d.ts interfaces (?type= optional filter).
GET /schema/{provider}/{type} JSON Schema Draft 2020-12 for a specific resource type (append ?format=ts for TypeScript).

Example JSON Envelopes (Success & Error Responses)

Section titled “Example JSON Envelopes (Success & Error Responses)”

Paginated Success (GET /api/v1/pages?template=yacht&limit=2)

Section titled “Paginated Success (GET /api/v1/pages?template=yacht&limit=2)”
{
"data": [
{ "id": 1042, "name": "aegean-horizon", "title": "M/Y Aegean Horizon", "cabins": 5, "weekly_rate_eur": 48000 },
{ "id": 1043, "name": "blue-heaven", "title": "S/Y Blue Heaven", "cabins": 5, "weekly_rate_eur": 20415 }
],
"meta": {
"page": 1,
"limit": 2,
"total": 12,
"hasMore": true
}
}

Validation (422) & Rate Limit (429) Error Envelope

Section titled “Validation (422) & Rate Limit (429) Error Envelope”
{
"errors": [
{
"code": "rate_limit_exceeded",
"status": 429,
"message": "Rate limit exceeded. Retry after 42 seconds."
}
]
}

Next steps