stepEntrypoint
The HTTP route handler that executes step functions.
The HTTP route handler that executes step functions. It receives step execution requests from the queue, routes them to the appropriate step function, and reports results back to the workflow run.
Unlike workflowEntrypoint(), this is the handler itself rather than a factory — step bundles register their step functions globally, and the handler routes by step name.
Framework adapters mount this for you at /.well-known/workflow/v1/step — you only need it when wiring workflow support into a custom server environment.
import { stepEntrypoint } from "workflow/runtime";
// Mount on your server, e.g. a fetch-style route:
export const POST = stepEntrypoint; API Signature
const stepEntrypoint: (req: Request) => Promise<Response>;A fetch-style request handler.
stepEntrypoint exists in workflow 4.x only. In 5.x the combined handler created by workflowEntrypoint() executes steps inline, and the separate step endpoint was removed.