GET
/
public
/
v1
/
files
/
{file_id}
curl --request GET \
  --url https://api.silnahealth.com/public/v1/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "url": null,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "original_filename": null
}

This returns an S3 Presigned URL which is active for 60 minutes. You can use this url to download this file. Below is an example for how to do this in python

import requests

response = requests.get('https://xxx.s3.amazonaws.com/xxxxxxx')
with open('output.pdf', 'wb') as f:
    f.write(response.content)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
string
required

Response

200
application/json
id
string
required
url
string | null
original_filename
string | null