{
  "name": "download-file",
  "title": "Download a file",
  "category": "HTTP",
  "tags": [
    "curl",
    "http"
  ],
  "version": "1.0.0",
  "date": "2026-07-17",
  "notes": "Initial release.",
  "latest": false,
  "installable": false,
  "url": "https://catalog.dagweave.com/api/v1/items/download-file/1.0.0.json",
  "entrypoint": "download",
  "parameters": [
    {
      "name": "url",
      "title": "URL",
      "description": "Absolute URL of the file to download. Redirects are followed.",
      "type": "string",
      "required": true,
      "example": "https://example.com/data.csv"
    },
    {
      "name": "dest-path",
      "title": "Destination path",
      "description": "Filesystem path to write the downloaded file to.",
      "type": "string",
      "required": false,
      "default": "/tmp/download"
    },
    {
      "name": "token-secret-key",
      "title": "Token secret key",
      "description": "Key within the Secret that holds the bearer token.",
      "type": "string",
      "required": false,
      "default": "token"
    },
    {
      "name": "token-secret-name",
      "title": "Token secret name",
      "description": "Name of the Kubernetes Secret holding an optional bearer token. If the Secret is absent the Authorization header is omitted.",
      "type": "string",
      "required": false,
      "default": "download-token"
    }
  ],
  "images": [
    {
      "ref": "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93",
      "repository": "curlimages/curl",
      "tag": "8.23.0",
      "digest": "sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/download-file",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
