JSON:API Frontend
This module provides a routing API for JSON:API frontends, ensuring that aliases, redirects, and language configurations are correctly resolved. It allows your frontend to reliably fetch the correct JSON:API URL for content.
Route resolution for Drupal JSON:API frontends
jsonapi_frontend adds a reliable “path → resource” router API for headless and hybrid sites. It resolves aliases, redirects, Views pages, language, and access checks so your frontend can fetch the right JSON:API URL every time.
Quick start
composer require drupal/jsonapi_frontend drush en jsonapi_frontend
Configure at: /admin/config/services/jsonapi-frontend
Resolve paths
GET /jsonapi/resolve?path=/about-us&_format=jsonNote: The resolver runs Drupal access checks; restricted/unpublished content resolves as “not found”.
Try it on Vercel (free)
One-click deploy a starter on Vercel. Set DRUPAL_BASE_URL to your Drupal site URL.
Add-ons (optional)
- jsonapi_frontend_menu — ready-to-render menu tree (active trail +
resolve hints) - jsonapi_frontend_webform — keep Webforms Drupal-rendered
(proxy/redirect safely) - jsonapi_frontend_layout — Layout Builder support
Requires: Drupal 10/11 + core JSON:API + Path Alias.
Docs: https://www.drupal.org/docs/
contributed-modules/jsonapi-frontend
Depends on
Dependencies of the latest stable release
- jsonapi Drupal core
- path_alias Drupal core
Required by
3 tracked projects depend on this one
- JSON:API Frontend Layout Builder 15 sites
- JSON:API Frontend Menu 2 sites
- JSON:API Frontend Webform 1 sites
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.13 | Stable | 10–11 | Drupal 12 compatibility: OOP hook classes with LegacyHook shims for Drupal 10/11, runtime requirements preserved on D12. No functional changes. | Jul 24, 2026 | |
| 1.0.12 | Stable | 10–11 | Jun 12, 2026 | ||
| 1.0.11 | Stable | 10–11 | Jun 12, 2026 | ||
| 1.0.10 | Stable | 10–11 | Fix proxy-secret 403 responses to use application/json; add functional smoke test coverage; CI/coverage + docs hardening updates. | Jan 4, 2026 | |
| 1.0.9 | Stable | 10–11 | jsonapi/routes query parsing + routes feed pagination | Jan 3, 2026 | |
| 1.0.8 | Stable | 10–11 | Cache metadata fix | Jan 2, 2026 | |
| 1.0.7 | Stable | 10–11 | adds Composer requirements so installs won’t mismatch | Jan 2, 2026 | |
| 1.0.6 | Stable | 10–11 | Redirect-aware path resolver + optional origin JSON:API protection | Jan 1, 2026 | |
| 1.0.5 | Stable | 10–11 | Adds recommended settings.php/env secret overrides in the admin UI. | Jan 1, 2026 | |
| 1.0.4 | Stable | 10–11 | Remove secrets from config | Jan 1, 2026 | |
| 1.0.3 | Stable | 10–11 | Docs: clarify authentication, caching, and CSRF guidance. | Jan 1, 2026 | |
| 1.0.2 | Stable | 10–11 | Initial stable release: /jsonapi/resolve + hybrid headless routing. | Jan 1, 2026 |