Get a WhatsApp media download URL
Returns a short-lived URL for the media an inbound WhatsApp delivery carried, when Samva stored it.
GET
Returns a short-lived URL for the media an inbound WhatsApp delivery carried, when Samva stored it.
apiKeyheader
x-api-key<token>deliveryId*stringMatch
^mdel_[0-9a-hjkmnp-tv-z]{16,24}$Success
application/json- response
url*stringexpiresAt*stringimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.whatsapp.getMediaDownloadUrl({
"deliveryId": "example"
});Example Response
{
"url": "string",
"expiresAt": "string"
}