# FilesDownloadResponse


[API catalog](/reference/api/) · [Docker Sandboxes overview](/reference/api/sandboxes/latest/) · [Product manual](https://docs.docker.com/ai/sandboxes-api/) · [OpenAPI specification](/reference/api/sandboxes/api.yaml)

API version: v1


> This API is experimental. Features, interfaces,
> and behavior may change.




Schema constraints and annotations:

```json
{
  "dependentSchemas": {
    "data": {
      "not": {
        "anyOf": [
          {
            "required": [
              "error"
            ]
          },
          {
            "required": [
              "header"
            ]
          }
        ]
      }
    },
    "error": {
      "not": {
        "anyOf": [
          {
            "required": [
              "data"
            ]
          },
          {
            "required": [
              "header"
            ]
          }
        ]
      }
    },
    "header": {
      "not": {
        "anyOf": [
          {
            "required": [
              "data"
            ]
          },
          {
            "required": [
              "error"
            ]
          }
        ]
      }
    }
  },
  "description": "DownloadResponse is one frame in a download stream. At most one of data, error, header is set.",
  "properties": {
    "data": {
      "description": "data carries bytes for the current file.",
      "format": "byte",
      "type": "string"
    },
    "error": {
      "$ref": "#/components/schemas/FileError",
      "description": "error reports a path-level failure without aborting the whole stream."
    },
    "header": {
      "$ref": "#/components/schemas/FileHeader",
      "description": "header starts a downloaded file."
    }
  },
  "title": "DownloadResponse",
  "type": "object",
  "unevaluatedProperties": false
}
```



