Skip to content
Proud to collaborate with Microsoft for Startups

wasender.session.provision ​

End-to-end session onboarding: create at Wasender, persist, connect, return pairing QR

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-wasender
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Org boundary
cloud_connection_uuiduuidYes—Owning connection
namestringYes—Session name
webhook_urlstringNo—Webhook to register
account_protectionbooleanNo—Enable account-protection
log_messagesbooleanNo—Enable message logging
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Org boundary
cloud_connection_uuiduuidYes—Owning connection
namestringYes—Session name
webhook_urlstringNo—Webhook to register
account_protectionbooleanNo—Enable account-protection
log_messagesbooleanNo—Enable message logging
actorstringNo——
whatsapp_session_idstringNo——
wasender_session_uuiduuidNo——
statusstringNo——
qr_codestringNo——
created_atstringNo——
persisted_atstringNo——
connected_atstringNo——
provisioned_atstringNo——
failed_atstringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
failure_typestringNo—Engine-stamped failure category (atomic path)
failed_actionstringNo—Engine-stamped action method that raised (atomic path)

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—createInputs accepted
connectingNoNo—completeConnecting + fetching pairing QR
creatingNoNo—persistCreating session at Wasender
persistingNoNo—connectPersisting WasenderSession row
completedNoYesYes—Session provisioned
failedNoYesNo—Provision failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedcreatecreating—
creatingpersistpersisting—
persistingconnectconnecting—
connectingcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "wasender.session.provision",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "name": "value"
  }
}