> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Message

Send a message to a specific user or a chat.

One of the following scopes is required for using this action:

* `Read and send messages in private and group chats`
* `Send messages as an app`

**Note:** To send a message to a user, `Obtain user ID` scope is also required.

<Note>
  External Documentation

  To learn more, visit the [Lark documentation](https://open.larksuite.com/document/server-docs/im-v1/message/create).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter    | Description                                                                                                                                                                                                                                                                                                                                                                                               |
  | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Content      | The content of the message. The format depends on the message type.<br /><br />For example, in order to send a simple text message, use the following format:<br /><pre><code>\{<br />  "text": "test content"<br />}</code></pre>For the full list of message formats, refer to [Lark API documentation](https://open.larksuite.com/document/server-docs/im-v1/message-content-description/create_json). |
  | Message Type | The type of message content.                                                                                                                                                                                                                                                                                                                                                                              |
  | Recipient    | The identifier of the message recipient. The format of the value depends on the selected `Send To` type (e.g., user ID, chat ID, email address, open ID, or union ID).                                                                                                                                                                                                                                    |
  | Send To      | Choose the message's destination.<br /><br />**Note**: To send a message to a user, `Obtain user ID` scope is required.                                                                                                                                                                                                                                                                                   |
</div>

## Example Output

```json theme={"dark"}
{
	"code": 0,
	"msg": "success",
	"data": {
		"message_id": "om_dc13264520392913993dd051dba21dcf",
		"root_id": "om_40eb06e7b84dc71c03e009ad3c754195",
		"parent_id": "om_d4be107c616aed9c1da8ed8068570a9f",
		"thread_id": "omt_d4be107c616a",
		"msg_type": "card",
		"create_time": "1615380573411",
		"update_time": "1615380573411",
		"deleted": false,
		"updated": false,
		"chat_id": "oc_5ad11d72b830411d72b836c20",
		"sender": {
			"id": "cli_9f427eec54ae901b",
			"id_type": "app_id",
			"sender_type": "app",
			"tenant_key": "736588c9260f175e"
		},
		"body": {
			"content": "{\"text\":\"@_user_1 test content\"}"
		},
		"mentions": [
			{
				"key": "@_user_1",
				"id": "ou_155184d1e73cbfb8973e5a9e698e74f2",
				"id_type": "open_id",
				"name": "Tom",
				"tenant_key": "736588c9260f175e"
			}
		],
		"upper_message_id": "om_40eb06e7b84dc71c03e009ad3c754195"
	}
}
```

## Workflow Library Example

[Send Message with Lark and Send Results Via Email](https://library.blinkops.com/workflows/send-message-with-lark-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/send-message-with-lark-and-send-results-via-email/canvas" />
</div>
