# Crea tu conexión a Alegra

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

### Configura el acceso

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

<figure><img src="https://lh7-us.googleusercontent.com/wz3OUvI3JWi65gegjtoTZzGp8Cpz8SiIC-nHVCUTRMmZcjEiX5DO2IAGrmOuWctvkSB72U-dHrBa5-FRt9iEi0hADmiaJJA6_LIyElNiUUpttaEsRWVQaXubRg1QYco6FAMxGAtMDmGoKiTy11nx3g" alt=""><figcaption></figcaption></figure>

2. **Selecciona Alegra** en el menú desplegable debajo de “Nuevo Plug”.

<figure><img src="/files/WVMKwAtQo7gg9DnzBBeN" alt=""><figcaption></figcaption></figure>

3. **Haz clic en “Configuración”** dentro de tu cuenta de Alegra.

<figure><img src="https://lh4.googleusercontent.com/fCPWp90GH1K3DoSsDfYLalmr8nYcwG_os8n_QjLiXSc3PlauRmdMYnObqJTjZXR3QC3KpO3G3BuhTHbvsbrNqM5I3CkY5xOV80syp5bLPL1FfW7B4YqQA-AymnR6f9OnjDT2ZT5ZP9rGclZnBsoZMA" alt=""><figcaption></figcaption></figure>

4. **Haz clic en “Integración manual - API”** dentro de la opción de Integraciones.

<figure><img src="https://lh3.googleusercontent.com/cffBxrvNW2Unr5zLGx2BADPOw6L3vRH1bZD9EhFsBd149ZgluXqzbZ5gfGBJj__AOyz1XrOTxxUcDgFnVCwg0XMhTAuPcvuXDkbk8OJNkG4VH9uN0vPGOKkl-4nRJW5Y3KeVrwA7sNYPd4Q8vEooPg" alt=""><figcaption></figcaption></figure>

5. **Copia el usuario y el token**. Pégalos en los campos correspondientes en la app de GearPlug. Haz clic en “Agregar”.

<figure><img src="/files/bsUAMAp2cFeXWeA1Wmc8" alt=""><figcaption></figcaption></figure>

1. ¡Listo! Tu Plug para Alegra está listo para ser usado en tu Gear.


---

# 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.gearplug.io/configura-tus-conexiones/alegra/crea-tu-conexion-a-alegra.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.
