We are trying to user whatsap API, playing with sandbox from Gupshup, the API works if i use gupshups sample pdf or files, at teh same time if i user a pdf from public url it throws the error "Url Not WhiteListed", but i dont see anywhere about the URL has to be whitelisted!!
my payload is this
curl -X POST https://api.gupshup.io/sm/api/v1/msg / -H 'Cache-Control: no-cache' / -H 'Content-Type: application/x-www-form-urlencoded' / -H 'apikey: 65XXX6afed5XXX01cd0a6bXXXf0a2XXX' / -H 'cache-control: no-cache' / -d 'channel=whatsapp&source=917834811114&destination=91XX88XX5X3 &message={"type":"file","url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"","filename":"dummy.pdf"}&src.name=Coolbuy'