Skip to main content

Get a signed download URL for a file attached to a workflow message.

GET/api/v1/workflows/{workflow_id}/messages/{workflow_message_id}/attachments/{workflow_message_attachment_id}/download-urlworkflows:manage

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.

Scopeworkflows:manage
AsynchronousNo
MCP toolget_workflow_message_attachment_download_url
Portal permissionsdownload_workflow_message_attachments

Parameters​

NameInTypeRequiredDescription
workflow_idpathstringRequired
workflow_message_idpathstringRequired
workflow_message_attachment_idpathstringRequired
expires_in_secondsqueryinteger or nullOptionalHow long the URL works, 60 to 604800 seconds. Default 3600.
file_namequerystring or nullOptionalThe name the file saves under, sent as the Content-Disposition of the download. Default: the name it was attached with.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json ContentURL
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

ContentURL​

FieldTypeRequiredDescription
content_typestring or nullRequired
expires_atstring (date-time) or nullRequired
size_bytesstring or nullRequired
urlstringRequired