Commit Graph

3 Commits

Author SHA1 Message Date
ecio b8734cd653 fix: join whatsapp-sys network for internal service communication
Adds whatsapp-sys-net (external) so whatsapp-sys containers can reach
whatsapp-api-oficial via http://whatsapp-api-oficial:3001 without DNS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:09:28 -03:00
ecio c5bfda5918 fix: simplify docker-compose to non-Swarm mode (match whatsapp-api pattern)
Remove external network and Swarm deploy labels; use expose + service-level
Traefik labels like the existing whatsapp-api container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:00:07 -03:00
ecio 995f211288 feat: projeto whatsapp-api-oficial — wrapper Meta Cloud API
API Node.js/Express que encapsula a Meta Cloud API (Graph API v21.0):
- POST /account/configure/:accountId — salva credenciais WABA no SQLite
- GET  /account/status/:accountId   — verifica credenciais via Meta API
- POST /message/send/:accountId     — envia texto, template ou mídia
- GET  /templates/:accountId        — lista templates aprovados da WABA
- GET  /webhooks/meta               — verificação de token (Meta handshake)
- POST /webhooks/meta               — recebe eventos Meta e repassa ao sys
- Dockerfile + docker-compose.yml com Traefik (apimsgoficial.neuralsys.com.br)
- Swagger em /api-docs com autenticação por x-api-key

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 16:49:24 -03:00