approvals

Submit Approvals

Submit approval decisions to a running agent workflow.

This endpoint sends approval decisions back to an agent workflow that is waiting for human-in-the-loop approval on tool calls.

Args: role: The authenticated user role. session_id: The agent session ID (used to lookup the workflow). payload: The approval decisions mapping tool_call_id to decision. session: Database session for workspace-scoped lookups.

Raises: HTTPException 400: If the approval submission fails validation. HTTPException 404: If the agent session/workflow is not found. HTTPException 500: For unexpected errors.

post/workspaces/{workspace_id}/approvals/{session_id}

Request

  • Base URL
    https://platform.tracecat.com/api
  • Auth
    API key in cookie fastapiusersauth

Path parameters

session_idstring uuid required
workspace_idstring uuid required

Request body

approvalsApprovalMap required

Response

Successful Response

Changes

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