> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plazbot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Registrar Webhook

> Registra un webhook para recibir mensajes de WhatsApp

### Registrar un webhook para WhatsApp

Configura un webhook para recibir los mensajes entrantes de WhatsApp en tiempo real. Los mensajes se enviaran al endpoint configurado para que puedas procesarlos.

```bash theme={null}
plazbot whatsapp register-webhook -n <telefono> -u <url>
```

### Parametros

| Parametro | Flag           | Requerido | Descripcion                                       |
| --------- | -------------- | --------- | ------------------------------------------------- |
| Numero    | `-n, --number` | Si        | Numero de WhatsApp configurado en Plazbot         |
| URL       | `-u, --url`    | Si        | URL del webhook (tu servidor, Make, Zapier, etc.) |

### Ejemplo

```bash theme={null}
plazbot whatsapp register-webhook -n 51912345678 -u https://hook.us1.make.com/kkcbwaau8m9w...
```

### Resultado

```text theme={null}
Registrando webhook de WhatsApp...
Numero: 51912345678
URL: https://hook.us1.make.com/kkcbwaau8m9w...

Webhook registrado exitosamente
```

<Tip>
  Puedes usar servicios como Make, Zapier, n8n o tu propio servidor para procesar los mensajes entrantes.
</Tip>
