Skip to content

Why Headless?

Building a few JSON endpoints with ProcessWire URL hooks is straightforward, but production frontend apps, mobile clients, and partner integrations quickly demand scoped API keys, refresh token rotation, HMAC replay protection, selector injection defense, OpenAPI/TypeScript contracts, rate limiting, and signed webhooks.

Capability Manual URL Hooks ProcessWire Headless Module
Authentication & rotation Custom bearer string checks; no refresh rotation 5 built-in guards (Public, ApiKey whk_*, BearerJwt + whr_* reuse detection, Hmac nonce guard, Session + CSRF)
Selector & access safety Easy to leak system templates or unpublished pages PageAccessPolicy + SelectorGuard + PageCollectionPaginator enforce $page->viewable() and block system templates
Schema & DX Hand-maintained docs and TypeScript interfaces Live OpenAPI 3.1.0, JSON Schema Draft 2020-12, and .d.ts TypeScript generation (/api/v1/schema/*)
Entries CRUD & revisions Repetitive serialization per blueprint Full EntriesProvider supporting filters, cursors, aggregates, batch upsert, working drafts, revisions/diff/restore, CSV/ICS
Ecosystem extensibility Copy-pasted routes per module Lazy headlessProviders pull-discovery: Blocks, Forms, Media, Navigation, Ai, Commerce, and custom providers plug in automatically
Webhooks & rate limits Custom curl calls blocking requests RateLimiter (HlRateLimit cache) + WebhookDispatcher with SSRF protection and DeliverHeadlessWebhookQueue

Next steps