Feishu / Lark

Feishu/Lark integration — messaging, Bitable CRUD, approvals, calendar, contacts

📨 Messaging → ⭐ Send File

AI-generated

Summary

Send a file to recipients via Feishu messaging

Inputs

  • receiveIdType — Type of recipient identifier (open_id, user_id, email, or chat_id).
  • receiveId (required) — Recipient identifier matching the selected type.
  • fileSource — Method of providing the file (URL for auto-upload or File Key for pre-uploaded file).
  • fileUrl (required) — Direct URL to the file to upload (used when fileSource is URL).
  • fileKey (required) — Key of the pre-uploaded file (used when fileSource is key).
  • fileName (required) — Display name with extension for the file.

Output shape

object representing the sent file message response

On success includes a message_id; errors are wrapped in an error envelope.

Examples

Example 1: Send a PDF to a group chat using a pre-uploaded file key

receiveIdType=chat_id, receiveId=chat_xxxxxx, fileSource=key, fileKey=file_v3_abc123, fileName=report.pdf

Example 2: Upload a file via URL and send it to a user

receiveIdType=open_id, receiveId=ou_user123, fileSource=url, fileUrl=https://example.com/doc.pdf, fileName=doc.pdf

Example 3: Send a file to multiple users by specifying each recipient on a new line

receiveIdType=open_id, receiveId=ou_user1, fileSource=url, fileUrl=https://example.com/file.txt, fileName=file.txt (repeat receiveId for each recipient in batchSend context)

Links

Discussion