Skip to main content

Get hooks

POST /api/hooks

Load hooks from the workspace .faheem-code/hooks.json file. This endpoint reads the hooks configuration from the project's .faheem-code/hooks.json file if it exists. Args: request: HooksRequest containing the project directory path. Returns: HooksResponse containing the hook configuration or None.

Request body

FieldTypeRequiredDescription
project_dir`stringnull`no

Responses

StatusDescription
200Successful Response
422Validation Error

Response body

FieldTypeRequiredDescription
hook_config`HookConfig-Outputnull`no

Operation ID: get_hooks_api_hooks_post