EndPointy Menus adds custom REST API routes to expose your WordPress navigation menus as JSON.
Base namespace: endpointy-menus/v1
Endpoints:
GET /wp-json/endpointy-menus/v1/menus
Returns all registered menus with locations and items.
GET /wp-json/endpointy-menus/v1/menus/<id>
Returns a single menu and its items by menu ID.
GET /wp-json/endpointy-menus/v1/locations
Returns all registered menu locations with assigned menus.
GET /wp-json/endpointy-menus/v1/locations/<location>
Returns a menu assigned to a specific location (e.g., 'primary', 'footer').
Query Parameters:
nested=true - Returns menu items in a hierarchical tree structure with parent-child relationships.
Example: /wp-json/endpointy-menus/v1/menus/2?nested=true
This is useful for headless WordPress setups or any external app that needs to read your menu structure.