Skip to main content
This page shows how to download a file a run collects, such as a statement. The run’s result holds it as a $file object:

Download the file

Fetch download_url once, with no Authorization header:
Save the body before anything else. Pomerado erases the file as soon as one download sends its last byte, whether or not your client saved it. Compare the bytes with sha256 to confirm they are complete. A download that breaks off before its last byte may start again until expires_at. An undownloaded file is erased after 30 minutes.