### GravityKit Hooks API - Product Directory Source: https://context7_llms This endpoint provides a directory of all products and their associated hook statistics, useful for discovering available products. ```APIDOC ## GET /api/hooks/index.json ### Description Provides a directory of GravityKit products with associated hook statistics. Useful for discovering available products and their hook counts. ### Method GET ### Endpoint /api/hooks/index.json ### Parameters None ### Request Example None ### Response #### Success Response (200) - **products** (array) - An array of product objects, each containing product ID and hook counts. #### Response Example { "products": [ { "id": "gravityview", "name": "GravityView", "hooks": 150, "actions": 30, "filters": 120 }, { "id": "gravityedit", "name": "GravityEdit", "hooks": 25, "actions": 5, "filters": 20 } // ... more products ] } ``` -------------------------------- ### GravityKit Hooks API - Compact Full Database Source: https://context7_llms This endpoint provides a minimized version of all GravityKit hooks for quicker access and searches. ```APIDOC ## GET /api/hooks-compact.json ### Description Retrieves all GravityKit hooks in a compact JSON format, optimized for speed and minimal data transfer. ### Method GET ### Endpoint /api/hooks-compact.json ### Parameters None ### Request Example None ### Response #### Success Response (200) - **hooks** (array) - A compact array containing hook information. #### Response Example { "hooks": [ { "id": "gravityview_render_field", "t": "filter", "p": "gravityview" } // ... more compact hook data ] } ``` -------------------------------- ### GravityKit Hooks API - Full Database Source: https://context7_llms This endpoint provides all GravityKit hooks in a single JSON file. It's comprehensive but larger in size. ```APIDOC ## GET /api/hooks.json ### Description Retrieves all GravityKit hooks (actions and filters) for all products in a single, large JSON file. ### Method GET ### Endpoint /api/hooks.json ### Parameters None ### Request Example None ### Response #### Success Response (200) - **hooks** (array) - An array containing all hook objects. - **actions** (integer) - The total count of action hooks. - **filters** (integer) - The total count of filter hooks. - **products** (integer) - The total count of documented products. - **last_updated** (string) - The timestamp of the last data update. #### Response Example { "hooks": [ { "id": "gravityview_render_field", "type": "filter", "product": "gravityview", "description": "Filter the output of a field before it is rendered.", "parameters": [ "$value (mixed)", "$field (Field Object)", "$entry (Entry Object)", "$view (View Object)" ], "return_value": "mixed" } // ... more hooks ], "actions": 194, "filters": 698, "products": 25, "last_updated": "2025-12-16" } ``` -------------------------------- ### GravityKit Hooks API - Per-Product Hooks Source: https://context7_llms This endpoint retrieves hooks for a specific GravityKit product, offering a smaller, more focused data set. ```APIDOC ## GET /api/hooks/{product-id}.json ### Description Retrieves all hooks (actions and filters) for a specified GravityKit product. ### Method GET ### Endpoint /api/hooks/{product-id}.json ### Parameters #### Path Parameters - **product-id** (string) - Required - The unique identifier for the product (e.g., `gravityview`, `gravityedit`). ### Request Example None ### Response #### Success Response (200) - **product** (string) - The ID of the product. - **hooks** (array) - An array of hook objects for the specified product. #### Response Example { "product": "gravityview", "hooks": [ { "id": "gravityview_render_field", "type": "filter", "product": "gravityview", "description": "Filter the output of a field before it is rendered.", "parameters": [ "$value (mixed)", "$field (Field Object)", "$entry (Entry Object)", "$view (View Object)" ], "return_value": "mixed" } // ... more hooks for gravityview ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.