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
| Field | Type | Required | Description |
|---|---|---|---|
project_dir | `string | null` | no |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
hook_config | `HookConfig-Output | null` | no |
Operation ID: get_hooks_api_hooks_post