wasender.media.upload ​
Upload media to Wasender and get a reusable URL
Upload media (base64 or binary/source URL) to Wasender via POST /upload.
Inputs:
- cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
- file_base64: str — base64-encoded media payload (one of file_base64/url required).
- url: str — source URL of media to upload (alternative to file_base64).
- mime_type: str — MIME type of the media (e.g. image/jpeg).
- file_name: str — original file name.
Outputs (terminal state_data):
- url: str — reusable hosted media URL
- media_key: str — provider media key, if returned
- mime_type: str — resolved MIME type of the uploaded media
- success: bool — provider success flag
Plugin required: context.get_plugin("wasender") must expose .api_token.
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 |
file_base64 | string | No | — | Base64-encoded media payload (one of file_base64/url required) |
url | string | No | — | Source URL of media to upload (alternative to file_base64) |
mime_type | string | No | — | MIME type of the media (e.g. image/jpeg) |
file_name | string | No | — | Original file name |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | No | — | Reusable hosted media URL |
media_key | string | No | — | Provider media key, if returned |
mime_type | string | No | — | Resolved MIME type of the uploaded media |
success | boolean | No | — | Provider success flag |
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.media.upload",
"initial_data": {
"cloud_connection_uuid": "value"
}
}