HooksFeature (builtin.hooks) exposes pre- and post-operation hooks over REST and the CLI, merging hooks defined in praisonaiagents.hooks (SDK hooks) with hooks registered dynamically through the API.
HooksFeature
builtin.hooks
praisonaiagents.hooks
| Method | Path | Description |
|---|---|---|
| GET | /api/hooks | List all merged SDK and UI-registered hooks |
GET
/api/hooks
| POST | /api/hooks | Register a new hook (name, event, type: "pre" \| "post", enabled) |
POST
name
event
type
"pre"
"post"
enabled
| GET | /api/hooks/{hook_id} | Fetch a UI-registered hook |
/api/hooks/{hook_id}
| DELETE | /api/hooks/{hook_id} | Delete a UI-registered hook |
DELETE
| POST | /api/hooks/{hook_id}/trigger | Trigger a hook manually with optional {"data": {...}} payload |
/api/hooks/{hook_id}/trigger
{"data": {...}}
| GET | /api/hooks/log | View recent hook executions (?limit=50) |
/api/hooks/log
?limit=50