Report an agent event
curl --request POST \ --url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/notify \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "hook_event_name": "example", "session_id": "example", "turn_id": "example", "prompt_id": "example", "tool_use_id": "example", "event": "example", "level": "info", "title": "example", "body": "example", "last_assistant_message": "example", "prompt_response": "example", "message": "example", "notification_type": "example", "task_subject": "example", "task_description": "example", "tool_name": "example", "tool_input": "example", "toolCall": { "id": "example", "name": "example", "args": "example" }, "terminationReason": "example", "fullyIdle": true, "error": "example", "agent_type": "example", "agent": "example", "source": "example" }'Takes an agent hook’s JSON payload as is (Claude Code, Codex, Gemini CLI, Antigravity CLI), or event, title, and body from other callers. Updates the pane’s agent status and, for events worth attention, marks the pane and notifies every client.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Pane ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Agent harness hook event name (e.g. “Stop”, “AfterAgent”).
Harness identity; shared by every event in one agent session.
Turn identity, when the harness provides one.
Claude Code: shared by every event of one turn.
Explicit event field (custom callers).
Explicit title (custom callers or Notification event).
Explicit body (custom callers).
Claude Code/Codex Stop and SubagentStop: last assistant message.
Gemini CLI AfterAgent: final response.
Notification event message.
Gemini CLI Notification category.
CC TaskCompleted: task subject line.
CC TaskCompleted: task description.
CC PermissionRequest: tool name.
CC PermissionRequest: tool input object.
Antigravity Stop: why the loop ended, e.g. NO_TOOL_CALL or USER_CANCELED.
Antigravity Stop: false while background tasks still run.
CC StopFailure: error category.
CC SubagentStop: agent type.
Optional agent name for semantic status reporting.
Optional reporter identity for semantic status reporting. SessionStart hooks may use this field for their start reason instead.
Responses
Section titled “Responses”Done
A malformed ID or JSON body
Missing or wrong access token
The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)
No such pane
A body over the size limit
No Content-Type: application/json
A body that doesn’t match its schema