Media
Get a media download URL
Generates a presigned, time-limited download URL for a ready media object. Use this endpoint to get a media download URL through the Samva email API.
GET
Generates a presigned, time-limited download URL for a ready media object.
apiKeyheader
x-api-key<token>id*stringMatch
^media_[0-9a-hjkmnp-tv-z]{16,24}$MediaDownloadUrl
application/json- response
url*stringexpiresAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.media.downloadUrl({ "id": "example"});Example Response
{ "url": "string", "expiresAt": "string"}