Lark icon

Lark

Consume Lark API

Actions118

消息 → 下载文件

AI-generated

Summary

Download a Lark message file by its resource key. Choose tenant access token or user access token authentication, then select whether to return the file as binary data or as JSON containing base64-encoded data.

Inputs

  • authentication — Authentication method: Tenant Access Token (default) or User Access Token.
  • file_key (required) — The resource key of the file to download.
  • outputAsBinary — Defaults to true. When enabled, returns the download as binary data in the data property. When disabled, returns JSON with the file data base64-encoded.

Output shape

One item per input item, containing the downloaded file.

Binary output uses the data binary property. With binary output disabled, the operation returns JSON containing base64-encoded data.

Links

Discussion