Skip to main content

Download files

Files stored in vaults are served from the Prudra CDN at assets.prudra.dev. CDN URLs are returned when you upload a file and are included in the vault manifest.

Getting file URLs

File URLs are available in several places:

CDN download

CDN URLs are publicly accessible — no authentication required. Return them directly to your callers:
The caller can download the file directly from the CDN without going through your server.

Authenticated download

If you need authenticated access (e.g., for sensitive files), use the API endpoint with a vault access token:

CDN URL lifetime

CDN URLs are valid for the lifetime of the vault. When the vault expires or is deleted, the CDN URL becomes invalid and returns 404. Persist the vault if you need long-lived CDN URLs.

From Node.js