A workflow’s context is an object provided by the route function. The context object provides:Documentation Index
Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- Workflow APIs – functions for defining workflow steps.
- Workflow Run Properties – request payload, request headers, and other metadata.
Context Object Properties
The request payload passed to the workflow run via
trigger() call.The request headers passed to the workflow run via
trigger() call.The unique identifier of the current workflow run.
The public URL of the workflow endpoint.
The URL used for workflow failure callback.If a failure function is defined, this is the same as the workflow’s
url.The environment variables available to the workflow.
The QStash client instance used by the workflow endpoint.
The label of the current workflow run, if set in client.trigger.