{"message":"WhatsApp Bot API","version":"1.0.0","documentation":{"connection":{"qr":{"method":"GET","endpoint":"/qr","description":"Ver código QR para conectar WhatsApp"},"health":{"method":"GET","endpoint":"/health","description":"Estado de la conexión"}},"giphy":{"search":{"method":"GET","endpoint":"/giphy/search?q=happy&limit=10","description":"Buscar GIFs en Giphy"},"trending":{"method":"GET","endpoint":"/giphy/trending?limit=10","description":"Obtener GIFs trending"},"getById":{"method":"GET","endpoint":"/giphy/:id","description":"Obtener un GIF específico por ID"},"searchAndSend":{"method":"POST","endpoint":"/giphy/send","description":"Buscar y enviar GIF directamente","body":{"to":"string (número)","text":"string (mensaje)","search":"string (término de búsqueda)"}}},"sendMessages":{"text":{"method":"POST","endpoint":"/messages/text","description":"Enviar mensaje de texto","body":{"to":"string (número de teléfono)","text":"string (mensaje)"}},"mediaWithText":{"method":"POST","endpoint":"/messages/media-with-text","description":"Enviar imagen o GIF con texto","body":{"to":"string (número)","text":"string (mensaje)","type":"string (image o gif)","media":"string (URL) o file (archivo)"}}},"receiveMessages":{"listMessages":{"method":"GET","endpoint":"/media/messages","description":"Listar todos los mensajes de texto recibidos"},"latestMessage":{"method":"GET","endpoint":"/media/messages/latest","description":"Obtener el último mensaje de texto"}},"receiveMedia":{"listMedia":{"method":"GET","endpoint":"/media/list","description":"Listar todos los medios recibidos"},"downloadMedia":{"method":"GET","endpoint":"/media/download/:id","description":"Descargar medio en formato binario"}}},"examples":{"searchGiphy":"curl \"http://localhost:3000/giphy/search?q=happy&limit=5\"","sendGifFromSearch":"curl -X POST http://localhost:3000/giphy/send -H \"Content-Type: application/json\" -d '{\"to\":\"51953852864\",\"text\":\"¡Mira esto!\",\"search\":\"happy cat\"}'","sendText":"curl -X POST http://localhost:3000/messages/text -H \"Content-Type: application/json\" -d '{\"to\":\"51953852864\",\"text\":\"Hola\"}'"}}