メインコンテンツまでスキップ

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
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

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.

スコープworkflows:manage
非同期いいえ
MCP ツールget_workflow_message_attachment_download_url
Portal の権限download_workflow_message_attachments

パラメーター​

名前場所型必須説明
workflow_idpathstring必須
workflow_message_idpathstring必須
workflow_message_attachment_idpathstring必須
expires_in_secondsqueryinteger または null任意How long the URL works, 60 to 604800 seconds. Default 3600.
file_namequerystring または null任意The name the file saves under, sent as the Content-Disposition of the download. Default: the name it was attached with.
Docwize-Versionheaderstring (date)任意
If-None-Matchheaderstring任意Answers 304 when the representation is unchanged (resources that publish an ETag).

応答​

ステータス説明本文
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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

ContentURL​

フィールド型必須説明
content_typestring または null必須
expires_atstring (date-time) または null必須
size_bytesstring または null必須
urlstring必須