POST /v1/chips | admin | criar + iniciar pareamento |
GET /v1/chips | admin | listar todos |
GET /v1/chips/:id | admin | detalhe |
GET /v1/chips/:id/qr | admin | base64 PNG do QR (TTL 60s) |
POST /v1/chips/:id/pair-code | admin | codigo XXXX-XXXX pra parear no proprio celular |
POST /v1/chips/:id/reconnect | admin | reabre socket reusando sessao |
POST /v1/chips/:id/repair | admin | apaga sessao + gera novo QR (preserva chip e historico) |
DELETE /v1/chips/:id | admin | logout + apaga chip do DB |
POST /v1/apps | admin | cria app + retorna api_key uma vez |
GET /v1/apps, /:id, /:id/accesses | admin | listar/detalhar |
PATCH /v1/apps/:id | admin | atualiza webhook_url + audita |
DELETE /v1/apps/:id | admin | soft delete |
POST /v1/app-chip-access | admin | grant (upsert) |
DELETE /v1/app-chip-access/:appId/:chipId | admin | revoke |
POST /v1/messages | app | enfileira envio (text, image, audio, document, location, reaction) |
GET /v1/messages/:id | app | status + content |
GET /v1/media/:id | app | stream da midia recebida |
GET /v1/chips/:chipId/contacts | admin | lista contatos do chip (paginado + search) |
GET /v1/chips/:chipId/contacts/:jid | admin | detalhe |
GET /v1/chips/:chipId/contacts/:jid/photo | admin | stream da foto (lazy fetch + cache MinIO) |
GET /v1/webhook-deliveries | admin | lista entregas com filtros |
GET /v1/webhook-deliveries/:id | admin | metadados |
GET /v1/webhook-deliveries/:id/payload | admin | payload + signature (debug) |
POST /v1/webhook-deliveries/:id/replay | admin | reset + reenfileira |
POST /v1/push/devices | admin | registra device pra push (mobile) |
GET, PATCH, DELETE /v1/push/devices/... | admin | CRUD device |
POST /v1/push/devices/:id/test | admin | dispara push de teste |
GET /v1/audit-events | admin | trilha de auditoria com filtros + cursor |
GET /v1/audit-events.csv | admin | export CSV |
GET /v1/chip-events/:chipId | admin | historico do chip (open/close/qr/etc) |
GET /v1/admin/me | admin | identidade da admin key atual |
GET /v1/admin/dashboard | admin | sumario JSON pro dashboard |
GET /v1/admin/messages | admin | busca paginada multi-app |
GET /v1/admin/users + CRUD | admin | gerencia admins |