Lark icon

Lark

Lark suite API V1

Message → Send

AI-generated

Summary

Send a message to a Lark user or channel via the Lark API V1.

Inputs

  • receiveIdType (required) — ID type of the message receiver. Identifies the receiver based on the selected type (chat_id for groups, email for users, open_id/app-unique, union_id/tenant-level, user_id/tenant-level).
  • receiveId (required) — ID of the message receiver. Must correspond to the receiveIdType value (e.g., a chat ID, user email, open_id, union_id, or user_id).
  • msgType (required) — Type of message to send. Determines which input fields are required and the structure of the content JSON.
  • textContent — The text content of the message. Only used when msgType is 'text'.
  • content — Message content as a JSON object. Required for all message types except 'text'. Structure depends on msgType (e.g., post, image, file, audio, media, sticker, interactive, share_chat, share_user).
  • additionalFields — Optional additional fields for the request. Currently supports 'uuid' for request deduplication; messages with the same uuid within 1 hour are throttled to one send.

Output shape

array

Returns the Lark API response data as a JSON array containing the sent message details. The array is produced by the node's execute function via return this.helpers.returnJsonArray([responseData.data]).

Discussion