wasender.sessions.create ​
Create a WhatsApp session
Create a new WhatsApp session via POST /whatsapp-sessions.
Inputs:
- name: STRING — human-readable session name, required.
- webhook_url / account_protection / log_messages — optional config.
Outputs (terminal state_data):
- id / name / api_key / status / webhook_url
- account_protection / log_messages / created_at
- provider_metadata: full provider session object.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-wasender |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | Selects the Wasender connection/plugin |
name | string | Yes | — | Human-readable session name |
webhook_url | string | No | — | Webhook URL to register for this session |
account_protection | boolean | No | — | Enable account-protection |
log_messages | boolean | No | — | Enable message logging |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | No | — | — |
id | string | No | — | — |
name | string | No | — | — |
api_key | string | No | — | — |
status | string | No | — | — |
webhook_url | string | No | — | — |
account_protection | boolean | No | — | — |
log_messages | boolean | No | — | — |
created_at | datetime | No | — | — |
provider_metadata | json | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | integer | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "wasender.sessions.create",
"initial_data": {
"cloud_connection_uuid": "value",
"name": "value"
}
}