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://cgc-api.sbgenomics.com/v2/files/{file_id}/download_info

Request

Example request

GET /v2/files/568e69abe9b0307bc0414164/download_info HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl  -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X GET "https://cgc-api.sbgenomics.com/v2/files/568e69abe9b0307bc0414164/download_info"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CGC 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 CGC-specific response codes that may be contained in the body of the response.

Example response body

{
  "url": "https://cgc-main.s3.amazonaws.com/050177c8-ecff-130a-96f8-54561a0c301e%2Btest-text.txt?response-content-disposition=attachment%3Bfilename%3Dtest-text.txt&response-content-type=application%2Foctet-stream&AWSAccessKeyId=AKIAIVTEXM5REGIZ56VA&Expires=1452345802&Signature=4e3DTiBMyiyLw%2F3VGjJUlwSyw28%3D"
}
Language