wasender.message.send_media ​
Upload media bytes then send and persist the outbound log
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-wasender |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
wasender_session_uuid | uuid | No | — | — |
to | string | Yes | — | — |
media_type | string | Yes | — | — |
file_base64 | string | No | — | — |
url | string | No | — | — |
mime_type | string | No | — | — |
caption | string | No | — | — |
view_once | boolean | No | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
wasender_session_uuid | uuid | No | — | — |
to | string | Yes | — | — |
media_type | string | Yes | — | — |
file_base64 | string | No | — | — |
url | string | No | — | — |
mime_type | string | No | — | — |
caption | string | No | — | — |
view_once | boolean | No | — | — |
actor | string | No | — | — |
media_url | string | No | — | — |
message_id | string | No | — | — |
status | string | No | — | — |
wasender_message_uuid | uuid | No | — | — |
sent_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 | — | upload | Inputs accepted |
persisting | No | No | — | complete | Persisting the outbound-log row |
sending | No | No | — | persist | Sending the media message |
uploading | No | No | — | send | Uploading media bytes |
completed | No | Yes | Yes | — | Media sent |
failed | No | Yes | No | — | Send failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | upload | uploading | — |
uploading | send | sending | — |
sending | persist | persisting | — |
persisting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "wasender.message.send_media",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"to": "value",
"media_type": "value"
}
}