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

# Edit a message

> Replaces the text content of a previously sent message.



## OpenAPI

````yaml openapi.evolution-go.json POST /message/edit
openapi: 3.1.0
info:
  title: Evolution GO Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer — Evolution GO. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-go`. Authenticate with the
    `apikey` header (your Pilot Status `ps_` key) or `Authorization: Bearer`.
    Instance/session endpoints are NOT available through the layer.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-go
security:
  - apiKey: []
tags:
  - name: Call (voice)
  - name: Chat
  - name: Community
  - name: Group
  - name: Label
  - name: Message
  - name: Newsletter / Channels
  - name: Send (load-balanced)
  - name: User / Contacts
paths:
  /message/edit:
    post:
      tags:
        - Message
      summary: Edit a message
      description: Replaces the text content of a previously sent message.
      operationId: post__message_edit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                chat:
                  type: string
                  description: >-
                    Chat where the message lives, as a JID or phone in E.164
                    digits
                  example: 5511999999999@s.whatsapp.net
                message:
                  type: string
                  description: New text content for the message
                  example: Corrected text
                messageId:
                  type: string
                  description: ID of the message to edit
                  example: 3EB0A1B2C3D4E5F6A7B8
              required:
                - chat
                - message
                - messageId
      responses:
        '200':
          description: Success — provider-native response body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Always "success" on HTTP 200.
                  data:
                    type: object
                    properties:
                      messageId:
                        type: string
                        description: ID of the edit message that was sent.
                      timestamp:
                        type: string
                        description: >-
                          Go time.Time string. Zero value ("0001-01-01 00:00:00
                          +0000 UTC") in the current implementation.
              example:
                message: success
                data:
                  messageId: 3EB0A11B22C33D44E556
                  timestamp: 0001-01-01 00:00:00 +0000 UTC
        default:
          description: Error — provider or layer error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````