Sending media notification

I have an approved template with a section for sending media through notification. When I use the following code, the picture is delivered as specified in the URL.

{
    "userDetails": {
        "number": "<receiver-number>"
    },
    "notification": {
        "type": "whatsapp",
        "sender": "<sender-number>",
        "templateId": "content_notification_5",
        "language": "en",
        "params": {
            "media": {
                "mediaLink": "https://juvoxa.com/ms-icon-310x310.png"
            },
            "1": "Asutosh",
            "2": "Dr.  Shanmukh Jaswantha",
            "3": "Cataract Removal (Phacoemulsification Method)",
            "quickReplies": {
                "ctaUrlParam": "2401"
            }
        },
        "namespace": "d2fe10fd_ad8c_4dce_8640_f9a34154ab75"
    },
    "config": {
        "customPayload": {
            "event_type": "new-prescription",
            "payload": {
                "patient_details": {
                    "name": "Asutosh",
                    "mobile_number": "<user-number>",
                    "id": "<user-id>"
                }
            }
        }
    }
}

This is how the template looks like
Capture

However, when I try to send a video or a PDF document by link, it fails.
For example:-
pdf document - https://unec.edu.az/application/uploads/2014/12/pdf-sample.pdf
video file - https://samplelib.com/lib/preview/mp4/sample-5s.mp4

Please help me with the solution.

1 Like