v4
Fi
__public__

Claude Code hook event from a Fi sandbox

post/v4/fi/hook

Headers

authorizationstring nullable

Request body

hook_event_name'UserPromptSubmit' | 'PreToolUse' | 'PostToolUse' | 'Stop' required
session_idstring required
transcript_pathstring required
cwdstring nullable
permission_modestring nullable
promptstring nullable
tool_namestring nullable
tool_inputobject nullable
{"stackTrail":"components:schemas:FiHookEvent:properties:tool_response:anyOf","oasType":"schema","type":"unknown","title":"Tool Response","nullable":true}
tool_use_idstring nullable
stop_hook_activeboolean nullable
last_assistant_messagestring nullable

Final assistant text emitted in the turn (present on Stop).

Response

Success

successtrue required

Flag for it request was successful

Changes

No recorded changes to this endpoint across all 1 revision of this API.