# download_document

> Get a short-lived signed download URL for a PDF artifact.

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: read: it only looks, so clients can run it without asking.

Get a short-lived signed download URL for a PDF artifact. Pass EITHER document_id (artifact: 'original' — the as-uploaded PDF, the default — or 'filled' — the last fill_document/fill_form_oneshot output; 404s if never filled) OR envelope_id (artifact 'sealed', the default there — the completed, signed PDF; only available once the envelope is fully signed). Never both: a call with both ids is refused. A filled or signed PDF contains the full form as filled in, ID numbers included (replies show them only as their last 3 characters).

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `document_id` | string | no | A document's id. Not with envelope_id |
| `envelope_id` | string | no | An envelope's id, for its sealed PDF. Not with document_id |
| `artifact` | string | no | original or filled (default original) with document_id; sealed (the default) with envelope_id. One of: original, filled, sealed |
