wasender.sessions.message_logs ​
Read-only: fetch WhatsApp session message logs; no database writes
Fetch paginated message logs for a session via GET /whatsapp-sessions/{id}/message-logs.
Inputs:
- id: STRING — session id (path param), required.
- page / limit / cursor — optional pagination.
Outputs (terminal state_data):
- logs / count / total / next_cursor
- provider_metadata: raw provider list envelope.
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 |
id | string | Yes | — | Session id (path param) |
page | integer | No | — | 1-based page number |
limit | integer | No | — | Max log entries per page |
cursor | string | No | — | Opaque pagination cursor |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | No | — | — |
id | string | No | — | — |
page | integer | No | — | — |
limit | integer | No | — | — |
cursor | string | No | — | — |
logs | list | No | — | Message-log entries |
count | integer | No | — | Entries returned in this page |
total | integer | No | — | Total entries across all pages |
next_cursor | string | No | — | Cursor for the next page |
provider_metadata | json | No | — | Raw provider list envelope |
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.message_logs",
"initial_data": {
"cloud_connection_uuid": "value",
"id": "value"
}
}