03 Oct 2026 · 14 views
A photo of your new offer. A PDF bill. A short video on how to use your product. With the E-Public Touch API you can send all of these from your software, just like a text message.



The link looks like this:
https://epublictouch.com/app/api/send/whatsapp?secret=YOUR_API_KEY
&recipient=919876543210&type=image
&media_url=https://yoursite.com/diwali-offer.jpg
&message=Diwali offer is live! 30% off on LED TVs
Click PDF / Document in the left menu of the tester. It works like the Photo page: in File, click Upload file or paste a link. Then fill File name the customer sees (optional) and Text under the file (optional). In a link, use type=document:
...&type=document
&document_url=https://yoursite.com/files/price-list.pdf
&document_name=Price-List-Oct-2026.pdf
&message=Here is our latest price list.
document_name is the file name your customer sees. If you leave it out, we use the name from the link.
type=video&media_url=https://yoursite.com/how-to-install.mp4 with an optional text in message (in the tester: Text under the video).type=audio&media_url=https://yoursite.com/warranty.mp3. WhatsApp does not show any text with audio.type=media. We read the file ending (.jpg, .mp4, .pdf…) and choose for you. In the tester this is More message types → Any media: leave Kind of file on Find out for me, and change it only if we guess wrong.

| Kind | File types | Max size |
|---|---|---|
| Photo | JPG, PNG | 5 MB |
| Video | MP4, 3GP | 16 MB |
| Audio | MP3, OGG, M4A, AAC, AMR | 16 MB |
| Document | PDF, Word, Excel, PowerPoint, TXT, CSV | 16 MB |
The text under a photo, video or file (message) can be up to 1,024 characters.
A quick check: paste the link in a private browser window. If the photo or PDF opens straight away, it will work.
Every photo, video and PDF box in the API Tester starts with an upload button (Upload photo, Upload video, Upload file), and the link box comes after it. Pick the file from your computer or phone. It is saved on E-Public Touch and the link box is filled in for you. Then click Send now, or open Link & code for your software under it and click Copy link.
There is also an Upload a file page in the left menu (under Files). It works in two clicks:

You then get Your file's link with a Copy link button, so you can use the file anywhere (Part 11 shows it).
If the file is on your computer or server, upload it to upload/media with your key. We check the file, save it and give you a link:
curl -X POST https://epublictouch.com/app/api/upload/media \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@price-list.pdf"
The answer has data.url. Use that link as document_url or media_url. You can also send in one step by attaching the file to the send request as media_file or document_file (a POST form upload).
FILE_TYPE, a big file gets FILE_TOO_BIG.Photos, PDFs and videos are normal messages. They work only within 24 hours of the customer's last message. To send a file to a new customer, use a template with a photo, video or document header (see Part 3, header_image and header_document).
Want your customer to reply with one tap? Part 5 covers reply buttons, list menus, website buttons and the Poster with buttons page (a photo with buttons under it).
Next: Part 5 — Buttons, list menus and posters
Try everything live in the API Tester.