---
title: "Enviar mensaje de texto"
method: POST
path: "/send/text"
tags: ["Message"]
---

# Enviar mensaje de texto

`POST /send/text`

## Request

- Base URL: `https://api.json.pe/api`
- URL: `https://api.json.pe/api/send/text`
- Auth: HTTP bearer

Envía un mensaje de texto a un **chat individual** (`number` en E.164 sin +) o a un **grupo** (`number` con el **JID** del grupo, p. ej. `120363423133649225@g.us`). **POST**, JSON, `Content-Type: application/json` y `Authorization: Bearer`.

## Request body

- WhatsappSendTextRequest
  - `number` string, required: Destino del mensaje. **Persona (chat individual):** número con código de país, **sin** el símbolo + (ej. Perú: `51999999997`). **Grupo:** el **JID** del grupo, p. ej. `120363423133649225@g.us` (como en el campo `JID` al listar grupos).
  - `text` string, required: Contenido del mensaje de texto.

## Response `200`

Envío exitoso.

- WhatsappApiOkResponse
  - `success` boolean, required
  - `message` string, required
  - `data` object, required: Carga útil adicional del proveedor; puede venir vacío.

## Other responses

- `400`: Solicitud inválida.
- `401`: Token inválido o ausente.

---

[API](https://skmtc.dev/json/apis/json-pe-api-consulta-ruc-dni-placa-soat-licencia-de-conducir.md) - [All operations](https://skmtc.dev/json/apis/json-pe-api-consulta-ruc-dni-placa-soat-licencia-de-conducir/llms.txt) - [OpenAPI document](https://skmtc.dev/json/apis/json-pe-api-consulta-ruc-dni-placa-soat-licencia-de-conducir/revisions/7d6e90afad50?raw)
