# Envío de SMS a través de SFTP

Dirección de conexión:

<table><thead><tr><th width="268">Nome</th><th>Host</th></tr></thead><tbody><tr><td><strong>Hostname</strong></td><td>ftp-messaging.wavy.global</td></tr><tr><td><strong>IPs</strong></td><td>IP principal: 200.219.220.54 <br>IP secundaria: 45.236.179.22</td></tr><tr><td><strong>Ports</strong></td><td>21 (ftps) <br>2222 (sftp)</td></tr><tr><td><strong>Authentication</strong></td><td>username + password</td></tr></tbody></table>

{% hint style="danger" %}
Atención:&#x20;

* ¡Es necesario permitir su IP saliente en nuestros firewalls!&#x20;
* Si necesita permitir en su firewall, siempre permita las dos IP 200.219.220.54 y 45.236.179.22
  {% endhint %}

Para disparar mensajes vía SFTP, es necesario generar un archivo en formato TXT, el formato debe seguir el siguiente ejemplo:

**numero;texto;correlationId(opcional);**\
**5511900000000;mensagem 1;;**\
**5519900000000;mensagem 2;;**\
**5521900000000;mensagem 3;;**\
**EOF**

El nombre del archivo a enviar debe seguir el siguiente formato:

```
<ID_SUBCONTA>.<DATA(YYYYMMDD)>.<SEQUENCIA> ou <NOME_DE_REFERÊNCIA_SUBCONTA>.<DATA(YYYYMMDD)>.<SEQUENCIA>
```

El cliente puede crear subcuentas (proyectos) en Messaging. Si no se sigue la nomenclatura anterior, el envío se realizará a través de la subcuenta predeterminada del cliente.

### **Ejemplo:**

```
3486.20170101.01.txt ou PROJETO1.20170101.01.txt
```

Es importante seguir la nomenclatura definida para que los mensajes se envíen a la subcuenta correcta.&#x20;

Posteriormente, el archivo debe enviarse al servidor **SFTP** en el directorio de carga.&#x20;

El archivo se moverá al directorio **SUCCESS** después de completarse, si hay un error, el archivo se moverá al directorio **ERROR**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-es.sinch.com/documentacion-tecnica/api-integraciones/envio-de-sms-a-traves-de-sftp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
