# Download Document

> Perform Download Document through Medsender.

Source: [https://genhealth.ai/docs/workflows/integrations/medsender/medsender_download_document](https://genhealth.ai/docs/workflows/integrations/medsender/medsender_download_document)

Integration: [Medsender](https://genhealth.ai/docs/workflows/integrations/medsender.md)

- Handler: `medsender_download_document`

- Connection type: `medsender`

## Inputs

- `file_token` — File Token (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `org_id` — Org Id
- `file_token` — File Token
- `was_existing` — Was Existing
- `documents` — Documents
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "file_token"
  ],
  "properties": {
    "file_token": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "org_id": {},
    "success": {},
    "documents": {},
    "file_token": {},
    "document_id": {},
    "was_existing": {}
  },
  "additionalProperties": true
}
```
