Skip to content

Commit 8215a81

Browse files
authored
improvement(hitl): add webhook notification and resume, add webhook block (#2673)
* Add api blcok as tool * Add webhook block * Hitl v1 * Cleanup * Fix * Update names for fields in hitl * Fix hitl tag dropdown * Update hitl dashboard * Lint
1 parent 155f544 commit 8215a81

File tree

16 files changed

+867
-694
lines changed

16 files changed

+867
-694
lines changed

apps/sim/app/api/resume/[workflowId]/[executionId]/[contextId]/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ export async function POST(
2121
) {
2222
const { workflowId, executionId, contextId } = await params
2323

24+
// Allow resume from dashboard without requiring deployment
2425
const access = await validateWorkflowAccess(request, workflowId, false)
2526
if (access.error) {
2627
return NextResponse.json({ error: access.error.message }, { status: access.error.status })
2728
}
2829

29-
const workflow = access.workflow!
30+
const workflow = access.workflow
3031

3132
let payload: any = {}
3233
try {
@@ -148,6 +149,7 @@ export async function GET(
148149
) {
149150
const { workflowId, executionId, contextId } = await params
150151

152+
// Allow access without API key for browser-based UI (same as parent execution endpoint)
151153
const access = await validateWorkflowAccess(request, workflowId, false)
152154
if (access.error) {
153155
return NextResponse.json({ error: access.error.message }, { status: access.error.status })

0 commit comments

Comments
 (0)