# Crea tu conexión a Mailrelay

{% hint style="info" %}
**Conexión Oauth**: El primer paso es registrar GearPlug en tu cuenta para que GearPlug acceda a los datos.
{% endhint %}

Para crear tu Plug para Mailrelay, necesitarás la URL y un token API. Estos los puedes extraer deste tu cuenta de Mailrelay siguiendo las instrucciones abajo:

### Configura el acceso

1. **Dirígete a “Plugs”** en la parte superior derecha de tu interfaz de GearPlug.

<figure><img src="https://lh7-us.googleusercontent.com/mhsVnaBnkdychhe0rJFkyWtZ7xMmJCOW_-CEwwOrRi92ueg0Kj4oATtfG-ieaVPgAHSB2zM30x_5DkS22jLG_Jkhkn3PVAl5LX8kPSbR9JviJpItJ7n742tUB5GKAVwMqPXU9szheDkoQZ5qgt-Giw" alt=""><figcaption></figcaption></figure>

2. **Selecciona Mailrelay** en el menú desplegable debajo de “Nuevo Plug” y haz clic en “Crear”.

<figure><img src="https://1819297938-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fdk5HILcHx1dwNe7bR8aE%2Fuploads%2FBYPEYFeFhxEBr9e9dBIV%2Fimage.png?alt=media&#x26;token=64c2c254-6746-428f-afbd-96f72320e754" alt=""><figcaption></figcaption></figure>

3. **Dirígete a tu interfaz de Mailrelay** y haz clic en “API keys” en el menú desplegable a la izquierda.

<figure><img src="https://lh5.googleusercontent.com/8JTEzzCpV95-Bz9ZtDsnH8cg5nZNsx7GUlXjNhwXoFBOPsIdgImnUth8c2RuoGzEd-1ApUiOgFE_dnfaEv0txEbUM6tURqeCvZTsiDaaazXTIuR5Sn_Hb37zHN7r1FelhciN5Sub9-Az-5jL8Lub_w" alt=""><figcaption></figcaption></figure>

4. **Haz clic en “+ Add”**. Esto te llevará a seleccionar un usuario para el token API. Selecciona el usuario que deseas usar y haz clic en “Create API key”. Debajo de “Token”, encontrarás el código que necesita.

<figure><img src="https://lh3.googleusercontent.com/AnVj9oVFf3G_6dwoBBJ9I_lPZ1aWYZdkR1S74tJLLRY3diRsVZTGnS9Jym8yHfx7ZKusd9e7tVdj7i5oCK-WIrim2N64N7sB8RE-iCJoHEhwPYjrM9PEa5JsTXI0OwV85HCzT0DPG8kMVqrQQoMMGg" alt=""><figcaption></figcaption></figure>

5. **Copia la URL** de tu cuenta de Mailrelay y el token API que acabas de generar. Pégalos en los campos correspondientes de vuelta en tu interfaz de GearPlug y haz clic en “Agregar”.

<figure><img src="https://1819297938-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fdk5HILcHx1dwNe7bR8aE%2Fuploads%2FkbhqB8NICEBRFtXwEsAz%2Fimage.png?alt=media&#x26;token=510fb900-7727-48de-9651-c05d30f9c037" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Al copiar la URL de tu cuenta de Mailrelay, solo necesitas el nombre, extensión, y “.com”. Si copias cualquier otra información, como “https\://” o lo que venga después de “.com”, la conexión te dará un error.
{% endhint %}
