get https://cavatica-api.sbgenomics.com/v2
/files/{file_id}/download_info
For general information on the API, including formatting, parameters, and pagination, please see the API Overview.
This call returns a URL that you can use to download the specified file.
https://cavatica-api.sbgenomics.com/v2/files/{file_id}/download_info
Request
Example request
GET /v2/files/567890abc4f3066bc3750174/download_info HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X GET "https://cavatica-api.sbgenomics.com/v2/files/567890abc4f3066bc3750174/download_info"
Header Fields
Name | Description |
---|---|
X-SBG-Auth-Token required | Your CAVATICA authentication token. |
Path parameters
Name | Description |
---|---|
fie_id | The ID of the file whose download URL you want to get. |
Query parameters
Name | Data type | Description |
---|---|---|
fields | string | Selector specifying a subset of fields to include in the response. |
Response
See a list of CAVATICA-specific response codes that may be contained in the body of the response.
Example response body
{
"url": "https://bucket.s3.amazonaws.com/48f79ccf-12b3-45b6-789c-b1e8d88dabcd%2Btest-text.txt?response-content-disposition=attachment%3Bfilename%3Dtest-text.txt&response-content-type=application%2Foctet-stream&AWSAccessKeyId=AKIAIZUEXM5REEXAMPLE&Expires=1452345802&Signature=3myyerand0mjkmjX24WApZwNo%3D"
}