Skip to content
Proud to collaborate with Microsoft for Startups

wasender.webhook.dispatch ​

Route + handle an inbound WasenderAPI webhook event

Route + handle an inbound WasenderAPI webhook event delivered by hook.receive-webhook.

Inputs (the relevant ones are carried from the redirect configuration):

  • payload: JSON — the raw WasenderAPI webhook body.
  • organization_uuid / cloud_connection_uuid: UUID.
  • auto_reply: bool, reply_text: str — optional auto-reply to genuine inbound messages.
  • persist: bool, wasender_session_uuid: UUID — optional inbound-message logging.

Outputs: event_type, from_jid, message_text, message_id, handled, replied, reply_message_id, persisted.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-wasender
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
cloud_connection_uuiduuidNo——
payloadjsonNo—Raw WasenderAPI webhook body
event_uuidstringNo——
redirect_uuidstringNo——
headersjsonNo——
auto_replybooleanNo—Reply to genuine inbound messages
reply_textstringNo—Body of the auto-reply
persistbooleanNo—Log the inbound message to WasenderMessage
wasender_session_uuiduuidNo—Owning session row, required to persist
webhook_secretstringNo—Override secret; else resolved from the connection

Output Schema ​

FieldTypeRequiredDefaultDescription
event_typestringNo——
from_jidstringNo——
message_textstringNo——
message_idstringNo——
handledbooleanNo——
verifiedbooleanNo——
repliedbooleanNo——
reply_message_idstringNo——
persistedbooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerintegerNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—route—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingroutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "wasender.webhook.dispatch",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "payload": "value",
    "event_uuid": "value"
  }
}