Skip to content
Proud to collaborate with Microsoft for Startups

wasender.messages.send_media ​

Send a media message by URL

Send an image/video/audio/document/sticker by URL via POST /send-message.

Inputs:

  • cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
  • to: str — recipient (phone number, group JID, or channel ID).
  • media_type: str — one of image/video/audio/document/sticker.
  • url: str — publicly-reachable media URL.
  • caption: str (optional) — caption text.
  • view_once: bool (optional) — send as view-once.
  • quoted_message_id: str (optional) — ID of a message to reply to / quote.
  • mentions: list (optional) — JIDs to @-mention.

Outputs (terminal state_data):

  • message_id: str — provider-assigned ID of the sent message.
  • status: str — send status string.
  • to: str — echoed recipient.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-wasender
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Cloud connection holding the Wasender credential
tostringYes—Recipient — phone number, group JID, or channel ID
media_typestringYes—One of image / video / audio / document / sticker
urlstringYes—Publicly-reachable URL of the media to send
captionstringNo—Caption text for the media
view_oncebooleanNo—Send as a view-once message
quoted_message_idstringNo—ID of a message to reply to / quote
mentionslistNo—List of JIDs to @-mention in the message

Output Schema ​

FieldTypeRequiredDefaultDescription
message_idstringNo——
statusstringNo——
tostringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerintegerNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "wasender.messages.send_media",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "to": "value",
    "media_type": "value",
    "url": "value"
  }
}