incoming_webhook_response(Args{status_code: "200 OK", response_body: "..."})
Respond to Incoming Webhook
BlockNetwork
Respond to an incoming webhook request with a custom status code and response body.
Inputs
Status CodeRequired
HTTP status code to respond with.
Options200 OK404 Not Found500 Internal Server Error400 Bad Request401 Unauthorized403 Forbidden201 Created202 Accepted
Response BodyRequired
Response body to send back to the webhook request.
Build a bot using blocks like Respond to Incoming Webhook
Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
incoming_webhook_responseInputs
| Field | InventScript name | Value |
|---|---|---|
| Status Code | status_code | "200 OK", "404 Not Found", "500 Internal Server Error", "400 Bad Request", "401 Unauthorized", "403 Forbidden", "201 Created", "202 Accepted" |
| Response Body | response_body |