---
agentTools:
  projectIndex: https://sb-biodatacatalyst.readme.io/llms.txt
---

# Get a file's download URL

action/files/get_download_url

This call allows you to get the download URL for a file.

[block:code]
{
  "codes": [
    {
      "code": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/action/files/get_download_url",
      "language": "text",
      "name": "Path"
    }
  ]
}
[/block]

\##Request

\###Example request

[block:code]
{
  "codes": [
    {
      "code": "POST /v2/action/files/get_download_url HTTP/1.1\nHost: api.sb.biodatacatalyst.nhlbi.nih.gov\nX-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96",
      "language": "http",
      "name": null
    },
    {
      "code": "curl --data '{[\"/Projects/1fd125fa-789c-45b6-12b3-2a3ab3bedcba/1000G_omni2.5.b37.vcf\"]}' -s -H \"X-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96\" -H \"content-type: application/json\" -X POST \"https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/action/files/get_download_url\"",
      "language": "curl",
      "name": "cURL"
    }
  ],
  "sidebar": true
}
[/block]

\##Request body
In the body, you should enter an array of strings, containing the file paths.

[block:parameters]
{
  "data": {
    "h-0": "Body",
    "h-1": "Data type of value",
    "h-2": "Content of value",
    "0-0": "array of strings, consisting of file paths.",
    "0-1": "",
    "0-2": ""
  },
  "cols": 1,
  "rows": 1
}
[/block]

\###Header Fields

[block:parameters]
{
  "data": {
    "h-0": "Name",
    "h-1": "Description",
    "0-0": "`X-SBG-Auth-Token`\n_required_",
    "0-1": "Your [authentication token](https://sb-biodatacatalyst.readme.io/docs/get-your-authentication-token).",
    "h-2": ""
  },
  "cols": 2,
  "rows": 1
}
[/block]

\##Response

[See a list of response codes that may be contained in the body of the response.](https://sb-biodatacatalyst.readme.io/docs/api-status-codes)