Get a signed download URL for a file attached to a workflow message.
A short-lived signed URL of the file, with its content type and size, read from the first storage tier that holds it. expires_in_seconds sets how long it works (60 to 604800, default 3600) and file_name the name it saves under (default: the name it was attached with). The link needs no sign-in: treat it as a secret. A file the storage no longer holds is 404.
| |
|---|
| Scope | workflows:manage |
| Asynchronous | No |
| MCP tool | get_workflow_message_attachment_download_url |
| Portal permissions | download_workflow_message_attachments |
Parameters
| Name | In | Type | Required | Description |
|---|
workflow_id | path | string | Required | |
workflow_message_id | path | string | Required | |
workflow_message_attachment_id | path | string | Required | |
expires_in_seconds | query | integer or null | Optional | How long the URL works, 60 to 604800 seconds. Default 3600. |
file_name | query | string or null | Optional | The name the file saves under, sent as the Content-Disposition of the download. Default: the name it was attached with. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
ContentURL
| Field | Type | Required | Description |
|---|
content_type | string or null | Required | |
expires_at | string (date-time) or null | Required | |
size_bytes | string or null | Required | |
url | string | Required | |