Skip to content
masterclass Buddy

Upstash · Function

serve

Use serve() to define an endpoint that runs a workflow. Pass it an async route function and optional workflow settings.

Last updated

Syntax

serve(routeFunction, options?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Workflow Context
  • Advanced Options
  • Failure Function
  • Workflow Steps

Source: Workflow Serve Overview. Checked 2026-11-03.