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

# Enviar uma mensagem de texto

> Envia uma mensagem de texto para um chat específico



## OpenAPI

````yaml POST /messages/send-text
openapi: 3.0.0
info:
  title: Botly Messaging API
  description: API para envio de mensagens de texto através da plataforma Botly
  version: 1.0.0
servers:
  - url: https://api.botly.com.br/api/v1/rest
security:
  - apiKeyAuth: []
paths:
  /messages/send-text:
    post:
      summary: Enviar mensagem de texto
      description: Envia uma mensagem de texto para um chat específico
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - message
                - chatId
              properties:
                message:
                  type: string
                  description: Texto da mensagem a ser enviada
                  example: Olá, tudo bem?
                chatId:
                  type: string
                  description: Identificador único do chat de destino
                  example: '1234567890'
      responses:
        '200':
          description: Mensagem enviada com sucesso
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  message:
                    type: string
                  chatId:
                    type: string
                  status:
                    type: string
        '400':
          description: Erro na requisição
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                  message:
                    type: string
        '401':
          description: Não autorizado
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                  message:
                    type: string
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````