get_download_url
Retrieve a temporary download URL for signed documents from completed digital signature envelopes. The URL expires after 5 minutes for secure document access.
Instructions
Get a temporary download URL (valid 5 min) for signed documents from a completed envelope.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envelopeId | Yes | Envelope UUID | |
| output | No | Output format (default: combined) |
Implementation Reference
- src/api.js:141-143 (handler)The core function that implements the download URL retrieval logic via an API call.
export function getDownloadUrl(creds, envelopeId, { output = 'combined' } = {}) { return apiCall('GET', `/api/envelopes/${envelopeId}/download-url?output=${output}`, creds); } - src/index.js:126-140 (registration)The MCP tool registration for 'get_download_url', including schema definition and the handler that calls the underlying API.
server.tool( 'get_download_url', 'Get a temporary download URL (valid 5 min) for signed documents from a completed envelope.', { envelopeId: z.string().describe('Envelope UUID'), output: z.enum(['combined', 'separate', 'only_log']).optional().describe('Output format (default: combined)'), }, async ({ envelopeId, output }) => { try { const data = await api.getDownloadUrl(creds, envelopeId, { output }); return result(data); } catch (err) { return errorResult(err); } }