Get download information and URL for a file

/files/{file_id}/download_info

This call returns a URL that you can use to download the specified file.

https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/files/{file_id}/download_info

Request

Example request

GET /v2/files/567890abc3d8130ea4047731/download_info HTTP/1.1
Host: api.sb.biodatacatalyst.nhlbi.nih.gov
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X GET "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/files/567890abc3d8130ea4047731/download_info"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your authentication token.

Path parameters

NameDescription
fie_idThe ID of the file whose download URL you want to get.

Query parameters

NameData typeDescription
fieldsstringSelector specifying a subset of fields to include in the response.

Response

See a list of response codes that may be contained in the body of the response.

Example response body

{
  "url": "https://bucket.s3.amazonaws.com/723c949a-789c-12b3-45b6-b2dd0d8d0021%2Btest-text.txt?response-content-disposition=attachment%3Bfilename%3Dtest-text.txt&response-content-type=application%2Foctet-stream&AWSAccessKeyId=AKIAIZUEXM5REEXAMPLE&Expires=1452345802&Signature=4rand0mMyiyLw%2F3VGyJUlwSyw28%3D"
}