Skip to main content
onHttpRequest subscribes an automation to HTTP requests. Use automation scope for a route owned by one automation, or project scope when the project should receive the route.

Example

automations/http-webhook.automation.ts

Options

Trigger configuration is static and cannot use signals.

Trigger data

Returns Signal<HttpRequestEvent>: With waitForResponse: true, ingress waits up to ten seconds for respondToHttpRequest in this automation context. Without a response it returns 504; execution can continue after the caller times out.