wasender.session.provision ​
End-to-end session onboarding: create at Wasender, persist, connect, return pairing QR
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-wasender |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Org boundary |
cloud_connection_uuid | uuid | Yes | — | Owning connection |
name | string | Yes | — | Session name |
webhook_url | string | No | — | Webhook to register |
account_protection | boolean | No | — | Enable account-protection |
log_messages | boolean | No | — | Enable message logging |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Org boundary |
cloud_connection_uuid | uuid | Yes | — | Owning connection |
name | string | Yes | — | Session name |
webhook_url | string | No | — | Webhook to register |
account_protection | boolean | No | — | Enable account-protection |
log_messages | boolean | No | — | Enable message logging |
actor | string | No | — | — |
whatsapp_session_id | string | No | — | — |
wasender_session_uuid | uuid | No | — | — |
status | string | No | — | — |
qr_code | string | No | — | — |
created_at | string | No | — | — |
persisted_at | string | No | — | — |
connected_at | string | No | — | — |
provisioned_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | create | Inputs accepted |
connecting | No | No | — | complete | Connecting + fetching pairing QR |
creating | No | No | — | persist | Creating session at Wasender |
persisting | No | No | — | connect | Persisting WasenderSession row |
completed | No | Yes | Yes | — | Session provisioned |
failed | No | Yes | No | — | Provision failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | create | creating | — |
creating | persist | persisting | — |
persisting | connect | connecting | — |
connecting | complete | completed | — |
* (any state) | fail | failed | — |
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"
}
}