wasender.media.decrypt ​
Decrypt inbound encrypted Wasender media
Decrypt inbound encrypted media via POST /decrypt-media.
Inputs:
- cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
- url: str — encrypted media URL to decrypt.
- media_key: str — media decryption key.
- mime_type: str — MIME type hint for the media.
Outputs (terminal state_data):
- url: str — decrypted public media URL (1h TTL)
- mime_type: str — resolved MIME type of the decrypted 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 |
url | string | Yes | — | Encrypted media URL to decrypt |
media_key | string | Yes | — | Media decryption key |
mime_type | string | No | — | MIME type hint for the media |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | No | — | Decrypted public media URL (1h TTL) |
mime_type | string | No | — | Resolved MIME type of the decrypted 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.decrypt",
"initial_data": {
"cloud_connection_uuid": "value",
"url": "value",
"media_key": "value"
}
}