respondToHttpRequest sends a status, headers, and body to one exact onHttpRequest occurrence. Passing the request’s ID makes the trigger wait automatically unless its waitForResponse option explicitly overrides that behavior.
Example
automations/http-response.automation.ts
Inputs
Unless you provide
content-type, respondToHttpRequest uses application/json for JSON, text/plain;charset=UTF-8 for strings, and the Blob’s media type. A Blob without a media type uses application/octet-stream.
Every input accepts a compatible signal. respondToHttpRequest returns Signal<void>.
onHttpRequest waits up to 55 seconds for a response with its request ID. If execution finishes without one, the caller receives 500. If execution is still active after 55 seconds, the caller receives 504, and the automation may keep running. An output addressed to another correlated HTTP request is ignored.