# Download original submission

`deal_applications.get_submission_download`

Download the original submission, including its saved signatures. Start with `deal_applications.get_submission_package` to check availability.

**Choose what to download**

- `artifact=zip`: the application PDF, signature audit trail and supporting files.
- `artifact=pdf`: the application and signature audit PDF.
- `artifact=file`: one supporting document. Include its `file_id` from `list_submission_files`.

**Retrieve the file**

- Public MCP: GET `download.url` with `Authorization: Bearer <transfer_token>` within five minutes. Use the returned token, not an API key. Transfer bytes outside the model and keep credentials private. Access is checked again when downloading.
- Internal AI: use the returned `staged_file` with `download_attachment`. The limit is 25 MiB; choose individual files for larger packages.

After downloading, inspect the file before describing its contents. A file listing or successful download alone does not verify the statements or signatures inside it. This retrieves the saved copy; it does not regenerate it, retry preparation or submit the application again.

[Deal applications guide](https://docs.levr.ai/mcp/resources/deal_applications.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Provider portal input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "application_id": {
      "description": "Deal Application id returned by deals.get or deals.create. Prefix: dapp_.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "artifact": {
      "description": "zip for the complete original; pdf for the application/audit PDF; file for a supporting document.",
      "enum": [
        "zip",
        "pdf",
        "file"
      ],
      "type": "string"
    },
    "file_id": {
      "description": "Required only for artifact=file. Copy id from list_submission_files.",
      "pattern": "^sfile_",
      "type": "string"
    },
    "provider_slug": {
      "description": "Portal workspace where the Deal Application is available. Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "application_id",
    "artifact"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "application_id": {
          "pattern": "^dapp_",
          "type": "string"
        },
        "download": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "expires_in_seconds": {
                  "type": "integer"
                },
                "method": {
                  "const": "GET",
                  "type": "string"
                },
                "transfer_token": {
                  "type": "string"
                },
                "url": {
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "url",
                "method",
                "transfer_token",
                "expires_in_seconds"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "filename": {
          "type": "string"
        },
        "staged_file": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^[0-9a-f]{64}$",
                  "type": "string"
                },
                "filename": {
                  "type": "string"
                },
                "handle": {
                  "pattern": "^[0-9a-f]{64}$",
                  "type": "string"
                },
                "size_bytes": {
                  "maximum": 26214400,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "handle",
                "digest",
                "filename",
                "size_bytes"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "application_id",
        "filename",
        "download",
        "staged_file"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
