wasender.groups.create ​
Create a new WhatsApp group
Create a new WhatsApp group via POST /groups with a name and initial participants.
Inputs:
- cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
- name: str — group subject/name.
- participants: list — phone/jid strings to seed the group.
Outputs (terminal state_data):
- group_jid: str — JID of the newly-created group
- name: str — group subject/name as set
- participants: list — participant phone/jid strings added
- group: dict — full group-metadata for the created group
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-wasender |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | Cloud connection holding the Wasender credential |
name | string | Yes | — | Group subject/name |
participants | list | Yes | — | LIST of phone/jid STRINGs to seed the group |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | No | — | — |
group_jid | string | No | — | — |
name | string | No | — | — |
participants | list | No | — | — |
group | 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.groups.create",
"initial_data": {
"cloud_connection_uuid": "value",
"name": "value",
"participants": "value"
}
}