File tree Expand file tree Collapse file tree 2 files changed +486
-961
lines changed
api/resume/[workflowId]/[executionId]/[contextId]
resume/[workflowId]/[executionId] Expand file tree Collapse file tree 2 files changed +486
-961
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ export async function POST(
2121) {
2222 const { workflowId, executionId, contextId } = await params
2323
24- // Require deployed workflow and valid API key (same as webhook triggers)
25- const access = await validateWorkflowAccess ( request , workflowId , true )
24+ // Allow resume from dashboard without requiring deployment
25+ const access = await validateWorkflowAccess ( request , workflowId , false )
2626 if ( access . error ) {
2727 return NextResponse . json ( { error : access . error . message } , { status : access . error . status } )
2828 }
@@ -149,8 +149,8 @@ export async function GET(
149149) {
150150 const { workflowId, executionId, contextId } = await params
151151
152- // Require deployed workflow and valid API key (same as webhook triggers )
153- const access = await validateWorkflowAccess ( request , workflowId , true )
152+ // Allow access without API key for browser-based UI (same as parent execution endpoint )
153+ const access = await validateWorkflowAccess ( request , workflowId , false )
154154 if ( access . error ) {
155155 return NextResponse . json ( { error : access . error . message } , { status : access . error . status } )
156156 }
You can’t perform that action at this time.
0 commit comments