HostMentor Docs

Download media from its URL

GET/whatsapp_business/attachments/

Downloads a file from the url returned by Retrieve a media URL. Call the URL exactly as returned, with your apikey header, within 5 minutes. The response body is the file.

The query parameters below are part of that URL; you don't build them yourself.

Authorization

apiKey
apikey<token>

Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.

In: header

Query Parameters

mid*string
ext*string
hash*string

Response Body

application/octet-stream

application/json

application/json

curl -X GET "https://wa.hostmentor.com/v3/whatsapp_business/attachments/?mid=1166846181421424&ext=1790506200&hash=ATtFkAs7t1xlhx9wik43m7NBRARfMzfh6Vi_IvgzzxkQsQ" \  -H "apikey: YOUR_API_KEY"
"string"