wasender.session.deprovision ​
Tear down a session: disconnect, delete at provider, soft-delete the local row
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 |
wasender_session_uuid | uuid | Yes | — | Local row to tear down |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Org boundary |
cloud_connection_uuid | uuid | Yes | — | Owning connection |
wasender_session_uuid | uuid | Yes | — | Local row to tear down |
actor | string | No | — | — |
whatsapp_session_id | string | No | — | — |
deleted | boolean | No | — | — |
resolved_at | string | No | — | — |
disconnected_at | string | No | — | — |
deleted_at | string | No | — | — |
deprovisioned_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 | — | resolve | Inputs accepted |
deleting | No | No | — | complete | Deleting the provider session |
disconnecting | No | No | — | delete | Disconnecting at the provider (best-effort) |
resolving | No | No | — | disconnect | Resolving provider session id from the local row |
completed | No | Yes | Yes | — | Session deprovisioned |
failed | No | Yes | No | — | Deprovision failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | resolve | resolving | — |
resolving | disconnect | disconnecting | — |
disconnecting | delete | deleting | — |
deleting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "wasender.session.deprovision",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"wasender_session_uuid": "value"
}
}