Create an api.php to document the hooks