chat.codename.cl
Chat embebible para tu app
Copia el script, entra al dashboard o conecta tu cliente a la API en tiempo real.
1. Pega este script en cualquier app
<script src="https://chat.codename.cl/widget.js"
data-workspace="ws_demo"></script>
El bubble de abajo usa exactamente ese snippet en esta página.
2. Dashboard
Entra con agent@local.dev / password123 para ver y contestar chats.
3. API en tiempo real
REST en /v1. WebSocket en ws://…/v1/stream?token=<jwt>.
curl -X POST https://chat.codename.cl/v1/auth/login \
-H "content-type: application/json" \
-d '{"email":"agent@local.dev","password":"password123"}'
curl https://chat.codename.cl/v1/conversations \
-H "authorization: Bearer TOKEN"
# Eventos en vivo: message.created, presence.changed, metafield.set
# WS wss://chat.codename.cl/v1/stream?token=TOKEN
Catálogo JSON: GET /v1