Generate a temporary signed URL for a trust portal document
POST
/v1/trust-portal/documents/{documentId}/download
const url = 'https://api.varman.io/v1/trust-portal/documents/example/download';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"organizationId":"org_6914cd0e16e4c7dccbb54426"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/trust-portal/documents/example/download \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "organizationId": "org_6914cd0e16e4c7dccbb54426" }'Generate a temporary signed URL for a trust portal document in Varman. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”documentId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
organizationId
required
Organization ID that owns the document
string
Example
org_6914cd0e16e4c7dccbb54426Responses
Section titled “Responses”Signed URL generated successfully
Media typeapplication/json
object
signedUrl
required
string
fileName
required
string
Example generated
{ "signedUrl": "example", "fileName": "example"}