Skip to content
Ten Digit

Sending messages

Send media

Send an image, video, audio file or document from a public URL.

Sends a file that WhatsApp fetches from a public URL. Works inside the 24-hour window.

GET/send-media

Parameters

LicenseNumberstringrequiredYour license number, shown on the Developer API page.
APIKeystringrequiredYour API key, shown on the Developer API page.
ContactstringrequiredRecipient number with country code, digits only.
FileURLstringrequiredPublic HTTPS link to the file.
Typestringimage (default), video, audio or document.
MessagestringOptional caption.

Example request

curl -G "https://console.tendigit.in/api/v1/ext/send-media" \
  --data-urlencode "LicenseNumber=YOUR_LICENSE" \
  --data-urlencode "APIKey=YOUR_API_KEY" \
  --data-urlencode "Contact=919876543210" \
  --data-urlencode "Type=image" \
  --data-urlencode "FileURL=https://example.com/offer.jpg" \
  --data-urlencode "Message=Today's offer"

Response

json
{
  "success": true,
  "messageId": "cmt8z1abc0005xyz",
  "status": "QUEUED"
}

File limits

WhatsApp limits files to about 5 MB for images, 16 MB for video and audio, and 100 MB for documents. The link must be reachable without a login.

24-hour window

Free-form messages (text, media, buttons, lists) can only be sent while the contact's 24-hour conversation window is open, meaning they messaged you in the last 24 hours. Outside the window, send an approved template instead. If the window is closed you get a SESSION_EXPIRED error.