---
title: "Edit message"
method: PATCH
path: "/v1/inbox/conversations/{conversationId}/messages/{messageId}"
tags: ["Messages"]
---

# Edit message

`PATCH /v1/inbox/conversations/{conversationId}/messages/{messageId}`

Edit a previously sent message. Platform support:
- Telegram: text and/or reply markup, any time
- 'iMessage: text only, within 15 minutes of sending (Apple''s limit; 409 `edit_window_expired` after that). Group messages included. The stored message keeps its edit history.'
- All others: returns 400

## Path parameters

- `conversationId` string, required
- `messageId` string, required

## Request body

- object
  - `accountId` string, required — Account ID
  - `text` string — New message text
  - `replyMarkup` object — New inline keyboard markup
    - `type` 'inline_keyboard'
    - `keyboard` array[]
      - object[]
        - `text` string
        - `callbackData` string
        - `url` string

## Response `200`

Message edited

- object
  - `success` boolean
  - `data` object
    - `messageId` integer

## Other responses

- `400` — Not supported or invalid request
- `401` — Unauthorized
- `403` — Inbox addon required

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/106013ac73b8?raw)
