diff --git a/sim/app/api/schedules/execute/route.ts b/sim/app/api/schedules/execute/route.ts index e998436855..18868db6b4 100644 --- a/sim/app/api/schedules/execute/route.ts +++ b/sim/app/api/schedules/execute/route.ts @@ -233,6 +233,10 @@ export async function GET(req: NextRequest) { // Add workflowId to the input for OAuth credential resolution const input = { workflowId: schedule.workflowId, + // Add _context with workflowId to ensure OAuth token resolution works properly + _context: { + workflowId: schedule.workflowId + } } // Process the block states to ensure response formats are properly parsed