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, refer to Use Expressions in Actions.
In this input field, you can enter expressions representing data related to the trigger that starts the Flux application (e.g., event.payload.temp
) or data related to the channel where the action is added (e.g., payload.temp
).
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.
In this input field, you can enter expressions representing data related to the trigger that starts the Flux application (e.g., ${event.payload.temp}
) or data related to the channel where the action is added (e.g., ${payload.temp}
). For details on supported expressions, refer to Action Config Expressions.
Auth Type
Select the Authentication Method for the Webhook.
For details on configuring and using header manipulations, refer to the Authorization Header page.
HTTP Headers
Click Add to enter the Header Name and Value for the HTTP headers.
In this input field, you can also use expressions to represent data related to the trigger that activated the Flux application (e.g., ${event.payload.temp}
) or data related to the channel where the action was added (e.g., ${payload.temp}
). For details on supported expressions, 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 enter expressions that represent data related to the trigger that launches the Flux app (e.g., ${event.payload.temp}
) or expressions that represent data related to the channel to which the action is added (e.g., ${payload.temp}
). For more details on the expressions you can input, 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 32,768 bytes.