Soracom Flux
Webhook Action
The Webhook Action sends an HTTP request to a specified URL.
Configuration
Condition
In the Action Condition section, you can specify the conditions under which the action will be executed using the values (Message or Context) from the event source to the channel. For more details on the expressions you can input, please refer to Using Expressions in Actions.
Config
Configure the HTTP request to be sent.
HTTP Method
Select the HTTP method for the Webhook.
URL
Enter the URL for the Webhook destination.
HTTP Headers
Click Add to enter the Header Name and Value for the HTTP headers. You can specify the values (Message or Context) from the event source to the channel in the Header Name and Value fields. For more details on the expressions you can input, please refer to Action Config Expressions.
HTTP Body
Configure the HTTP body by selecting the Content Type and payload.
- No Body: Do not send an HTTP body.
- application/json: Send
content-type: application/json
. - text/plain: Send
content-type: text/plain
. - Other: Specify a custom Content Type. If needed, click Add in HTTP Headers to set the HTTP headers.
- Forward as-is: Send the input data for the Webhook Action as the HTTP body.
In the HTTP body input field, you can specify the values (Message or Context) to send from the event source to the channel. For more details on the expressions you can input, please refer to Action Config Expressions.
Output
Configure how to handle the output data of the action. Refer to Enable Republishing of Action Output for more details.
Output Data of the Action
The output data is the response from the Webhook destination.
A note on Webhook Action limitations:
- The Webhook Action times out after 10 seconds. Services that take more than 10 seconds to respond cannot be used.
- The response from the Webhook destination is truncated at 8192 bytes.