Walytic icon

Walytic

Interact with the Walytic WhatsApp automation platform

Message → Send Media

AI-generated

Summary

Sends media messages (image, video, document, audio) to WhatsApp contacts or groups using a publicly reachable URL.

Inputs

  • Session ID (required) — WhatsApp phone number in E.164 digits, no + sign (e.g. 919876543210).
  • Target Type — Recipient type: 'number' (contact), 'groupId' (group ID), or 'groupName' (case-insensitive group subject match).
  • Recipient Number (required) — E.164 digits (no + sign) or a contact JID. Required if Target Type is 'number'.
  • Group ID (required) — Group JID ending in @g.us. Required if Target Type is 'groupId'.
  • Group Name (required) — Case-insensitive group subject match. Required if Target Type is 'groupName'.
  • File URL (required) — Publicly reachable URL for the media file. Mime type is detected from response headers.
  • Caption — Optional text caption to accompany the media.

Output shape

A single record containing the API response (usually success status and message details).

If the API returns a paginated data structure, it is unwrapped into individual items.

Examples

Example 1: Send an image to a specific contact.

Session ID: 919876543210, Target Type: 'number', Recipient Number: 918765432109, File URL: https://example.com/image.jpg, Caption: 'Check this out!'

Example 2: Send a PDF document to a group by name.

Session ID: 919876543210, Target Type: 'groupName', Group Name: 'Project Team', File URL: https://example.com/report.pdf

Example 3: Send a video to a group by ID.

Session ID: 919876543210, Target Type: 'groupId', Group ID: 1234567890@g.us, File URL: https://example.com/video.mp4

Links

Discussion