# Hooks & Server-Side API ## Hooks Hooks are PHP files in the `hooks/` directory that execute server-side logic at specific lifecycle points. ### Hook Types ### Hook File Naming ### Hook Examples ## CmsApi The `CmsApi` class provides methods to interact with the CMS from hooks. ## CocoDB `CocoDB` is the database abstraction layer for Acai. ## Database Operations ### Direct Queries ### Table Schemas Table schemas are stored as JSON files in `cms/data/schema/`. Each file defines the fields, types, and configuration of a CMS table.