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

# URL Externa

> Envía un mensaje con un botón que abre una URL

```bash cURL theme={null}
curl --request POST \
  --url https://api.jelou.ai/v1/bots/BOT_ID/messages \
  --header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
  --header 'Content-Type: application/json' \
  --data '{
    "type": "cta_url",
    "title": "Bienvenido",
    "text": "Visita nuestro sitio web para aprender más",
    "caption": "Jelou",
    "userId": "USER_ID",
    "parameters": {
      "url": "https://apps.jelou.ai",
      "display_text": "Visitar Sitio Web"
    }
  }'
```

```json 200 theme={null}
{
  "success": true,
  "messageId": "msg_123456789"
}
```

## Parámetros de ruta

**botId** `string` *required*

Identificador único del bot que envía el mensaje.

## Parámetros del cuerpo

**type** `string` *required*

Tipo de mensaje. Debe ser `"cta_url"`.

**userId** `string` *required*

Destinatario del mensaje. Acepta un número de teléfono en formato E.164 sin el signo `+` (ej: `593999999999`) o un BSUID (ej: `US.13491208655302741918`) para usuarios con protección de número activada en WhatsApp. Consulta [Identificación del destinatario](https://docs.jelou.ai/api/envia-mensajes/Envio-de-mensajes.md#identificación-del-destinatario).

**title** `string` *required*

Encabezado del mensaje.

**text** `string` *required*

Cuerpo del mensaje.

**caption** `string` *required*

Pie del mensaje.

**parameters** `object` *required*

Configuración del botón.

**propiedades**

**url** `string` *required*

URL que se abre al presionar el botón.

**display\_text** `string` *required*

Texto visible del botón.

## Respuesta

**success** `boolean`

`true` si el mensaje se envió correctamente.

**messageId** `string`

Identificador del mensaje enviado.

## Mejores Prácticas

> [!NOTE]
>
> **URLs Seguras:** Asegúrate de que las URLs sean HTTPS y proporcionen texto de botón claro y accionable.

## Casos de Uso

* Dirigir usuarios a sitios web externos
* Enlazar a aplicaciones web
* Compartir recursos en línea
* Redirigir a formularios o páginas de registro


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.