Download an inbound WhatsApp media file with the temporary signed URL sent in the whatsapp.message.received event (15 minutes). No authentication: the signature is the authorization.
GET
/v1/whatsapp-media/{org}/{conn}/{mediaId}
const url = 'https://api.replifier.com/v1/whatsapp-media/org_01hx0000000000000000000000/pcn_01hx0000000000000000000000/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/whatsapp-media/org_01hx0000000000000000000000/pcn_01hx0000000000000000000000/exampleParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Example
org_01hx0000000000000000000000conn
required
string
Example
pcn_01hx0000000000000000000000mediaId
required
string
Query Parameters
Section titled “Query Parameters”exp
string
sig
string
Responses
Section titled “Responses”The file
Media typeapplication/octet-stream
string
Invalid or expired signature
The media is no longer available