Integra BOTON con tu CRM, servidor, o cualquier automatizacion. Envia mensajes de WhatsApp, lee conversaciones y configura tu bot — todo via API REST.
Cada negocio tiene su propio token. Generalo en Dashboard → API Access.
Incluir en cada request: Authorization: Bearer <token>
# Example curl -H "Authorization: Bearer YOUR_TOKEN" \ https://boton.etthore.com/api/v1/status
// Response { "business": "Mi Negocio", "connected": true, "phone": "5491138620812", "botPurpose": "attend", "botNewChats": false, "activeBotChats": 12, "untouchableChats": 2 }
curl -H "Authorization: Bearer YOUR_TOKEN" \ https://boton.etthore.com/api/v1/chats?page=0&pageSize=20
// Response { "chats": [ { "jid": "5491112345678@s.whatsapp.net", "name": "Juan", "lastMessage": { "text": "hola", "direction": "incoming", "timestamp": "..." }, "messageCount": 8, "botEnabled": true } ], "total": 45, "page": 0, "hasMore": true }
curl -H "Authorization: Bearer YOUR_TOKEN" \ https://boton.etthore.com/api/v1/chats/5491112345678@s.whatsapp.net/messages
// Response { "jid": "5491112345678@s.whatsapp.net", "messages": [ { "text": "hola", "direction": "incoming", "timestamp": "...", "botGenerated": false } ] }
message para texto directo, o instruction para que el bot inicie la conversacion con una instruccion.# Mensaje directo curl -X POST -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"to":"5491112345678","message":"Hola, tu turno es manana a las 15hs"}' \ https://boton.etthore.com/api/v1/send
# Enviar a varios + instruccion para el bot curl -X POST -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"to":["5491112345678","5491198765432"],"instruction":"Ofrece turno para manana"}' \ https://boton.etthore.com/api/v1/send
curl -X POST -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"botPurpose":"attend","botNewChats":true,"customInstructions":"Responde solo en espanol"}' \ https://boton.etthore.com/api/v1/config