# Enviar texto

## Send Text

<mark style="color:green;">`POST`</mark> `https://api2.wazend.net/message/sendText/{{instance_name}}`

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |
| apiKey       | `<api_token>`      |

**Body**

<pre class="language-json"><code class="lang-json"><strong>{
</strong>    "number": "51924079147", //Número de destinatario con código de país
    "text": "Mensaje de prueba"
}
</code></pre>

| Name     | Type   | Description                                                      |
| -------- | ------ | ---------------------------------------------------------------- |
| `number` | string | Número de la persona destinataria con el código del país         |
| `text`   | string | Texto que se desea enviar (soporta salto de línea, negrita, etc) |

**Response**

{% tabs %}
{% tab title="201" %}

```json
{
    "key": {
        "remoteJid": "51976578749@s.whatsapp.net",
        "fromMe": true,
        "id": "3EB02194518E74D0B090FCCBFE34C06B81A26F84"
    },
    "pushName": "",
    "status": "PENDING",
    "message": {
        "conversation": "teste de envio"
    },
    "contextInfo": null,
    "messageType": "conversation",
    "messageTimestamp": 1732227386,
    "instanceId": "a593600e-e145-43f4-8be9-b281ed63bcf8",
    "source": "unknown"
}
```

{% endtab %}

{% tab title="404" %}

```json
{
    "status": 404,
    "error": "Not Found",
    "response": {
        "message": [
            "The \"82\" instance does not exist"
        ]
    }
}
```

{% endtab %}
{% endtabs %}
