API Input Node

Basic
When this node runs, it listens on an URL for user-submitted data.
In WebSocket subscription, you will see an event with type "event": "ApiInput":
This event contains a URL to submit the data.
Send POST request to submit
In above example, node will output a string "Hello".
Send DELETE request to cancel
Node will return an error: "canceled by user".
You can set timeout via input, default is no timeout.
Receive event with web hook
Pass the web hook URL to webhook_url input, the URL will receive a POST request with JSON body such as:
You can use webhook_headers input to set headers such as for authentication.
Last updated