chat_send
Sends a message on behalf of the token owner to a chat (a task's chat ID is the task ID) or, with userID, a direct message to an employee; replyMessageID makes it a reply. Intended for blocking questions, replies to messages addressed to the token owner and messages the user asks for - not for status updates, summaries or links to created items. Returns chatID, the message and an after cursor; the message can be edited or deleted within 60 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message in the language of the workspace data: Markdown without headings, tables or images; bare URLs become links. Tasks and features go in as their link value, employees as their mention token where addressed | |
| chatID | No | Chat ID; for a task's chat - the task ID | |
| userID | No | Employee ID for a direct message, instead of chatID | |
| mentions | No | Not needed: mentions come from mention tokens in text | |
| attachments | No | Up to 5 attachments: each is an uploaded file's fid or name with dataBase64 | |
| idempotencyKey | No | Retry-safety key: one key per chat yields one message | |
| replyMessageID | No | ID of the message in this chat to reply to |