---
title: "Send a text message"
locale: en
url: https://tlg.builera.app/en/docs/reference/rest/messages.send
verified: 2026-10-24
app_version: "2.0"
generated: true
---

# Send a text message

Send a text message in a chat through the account's safety gate (limits, run hours, opt-outs). Returns messageId + an operation to follow until Telegram confirms.

Send a text message in a chat through the account's safety gate (limits, run hours, opt-outs). Returns messageId + an operation to follow until Telegram confirms.

## Overview

| Name | Value |
| --- | --- |
| Code | `messages.send` |
| Scope needed | `messages.send` |
| Risk | Write |
| May need confirmation | No |
| Runs as | Queues work for a node |
| Needs `Idempotency-Key` | Yes |
| Member roles allowed | `owner`, `manager`, `agent` |
| In the app | Inbox → message composer |

## Input fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `conversationId` | `uuid` | Yes |   |
| `text` | `text` | Yes |   |
| `replyToMessageId` | `integer` | No |   |
| `topicId` | `integer` | No |   |
| `inReplyToEventId` | `text` | No |   |
| `ifLastMessageId` | `uuid` | No |   |
| `clientMessageId` | `uuid` | No |   |

## Example request

```bash
curl -X POST https://tlg.builera.app/api/public/v2/ops/messages.send \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <unique key per operation>" \
  -d '{"conversationId":"00000000-0000-0000-0000-000000000000","text":"…"}'
```

## Output fields (`data`)

| Field | Type | Required |
| --- | --- | --- |
| `timings` | `object \| null` | No |
| `ok` | `true` | Yes |
| `messageId` | `text` | Yes |

## Example answer

```json
{
  "data": {
    "timings": {
      "startedAt": 1,
      "stages": {}
    },
    "ok": true,
    "messageId": "00000000-0000-4000-8000-000000000000"
  }
}
```

## Using it over MCP

Tool `messages_send` is listed on the profiles: Real-time operations (`realtime`), Automation setup (`setup`), Discover (`prospecting`), Reports (`reports`), Administration (`admin`), Full (`full`). On other profiles, find it with `tools_search` and run it with `tools_run`.
