Skip to main content
POST
Register a hook

Authorizations

x-api-key
string
header
required

Body

application/json

The client-facing register-a-hook request body: the fields a caller supplies.

execution_key_fingerprint is server-derived at bind and deliberately absent here; :class:HookParams is this shape plus that one stored field.

execution_key
string
required

The api-key user_id the hook fires as; its live stored grants authorize every tool call the fire makes.

Minimum string length: 1
name
string
required
Minimum string length: 1
tool
string
required
Minimum string length: 1
topic
string
required
Minimum string length: 1
condition
string | null
condition_id
string | null
condition_kwargs
Condition Kwargs · object
expr
string | null
expr_id
string | null
expr_kwargs
Expr Kwargs · object
tool_kwargs
Tool Kwargs · object

Response

Success.

data
any
required