Upstash Documentation

context.createWebhook

1 min read

context.createWebhook() creates a unique webhook that can be called by external services to trigger workflow continuation.

The webhook URL generated can be called multiple times to resume multiple context.waitForWebhook steps.

Arguments#

stepNamestringrequired#

Name of the step.

Response#

webhookUrlstring#

The unique webhook URL that external services should call to resume the workflow.

Can be called multiple times to resume multiple context.waitForWebhook steps.

eventIdstring#

The internal event identifier associated with this webhook. This is primarily used internally by context.waitForWebhook.

Usage#

For more complete examples and use cases, see the page on webhooks.