v35

latestOpenAPI 3.0.0Proprietaryraw.githubusercontent.com2026-04-1656176283.0 KB
Hooks

Create a hook

Creates a new hook configuration

post/v1/hooks

Request body

failure_mode'fail_closed' | 'fail_open' required
hook_point'tool.access' | 'tool.pre' | 'tool.post' required
namestring required
phase'before' | 'after' required
plugin_idstring required
priorityinteger
status'inactive' | 'active'
timeout_msinteger

Response

Created

cache_enabledboolean
cache_ttl_msinteger
created_atstring
failure_mode'fail_closed' | 'fail_open'
hook_pointstring
idstring
namestring
phase'before' | 'after'
plugin_idstring
priorityinteger
status'inactive' | 'active'
timeout_msinteger
updated_atstring
versioninteger