How to download stored files

In the previous post, we have seen how to upload files to Hypi’s low code backend.

Let’s check how to download the uploaded files.
First, we’ll create the URL to download the file (uploaded in the previous post).
Copy the value from the path field of the File object and append it to the endpoint.

https://api.staging.hypi.dev + /file/01FQDYDP8681299EXZBWJXRX2Y-01FSRCRNZQQ41JWD6E5TS0KMRA.txt

So, our download url is

https://api.staging.hypi.dev/file/01FQDYDP8681299EXZBWJXRX2Y-01FSRCRNZQQ41JWD6E5TS0KMRA.txt

Here, is the simple cURL request to download the file.

curl --location --request GET 'https://api.staging.hypi.dev/file/01FQDYDP8681299EXZBWJXRX2Y-01FSRCRNZQQ41JWD6E5TS0KMRA.txt' \
--header 'Authorization: Your_Auth_Key'

Check the POSTMAN collection for the File Download in different programming languages! Click </> and choose the programming language of your choice.

Run in Postman

Don’t forget to insert your own URL and Authorization key to test the results!