DJTelecom API

v1.4.0

🔓 Autenticação (público)

POST/v1/auth/login
POST/v1/auth/password-forgot
POST/v1/auth/password-reset
POST/v1/auth/validate-token

🔐 Autenticação (autenticado)

POST/v1/auth/logout
POST/v1/auth/set-email
POST/v1/auth/resend-verification
GET/v1/auth/email-verification-status

👤 Perfil e Configurações

GET/v1/me
PUT/v1/me
GET/v1/settings
PUT/v1/settings
POST/v1/ratings
DEL/v1/account

📊 Financeiro

GET/v1/invoices
GET/v1/invoices/{id}
POST/v1/invoices/sync
POST/v1/invoices/{id}/notify-payment
POST/v1/invoices/{id}/unlock-by-promise

🌐 Internet e Rede

GET/v1/internet-usage
POST/v1/internet-usage/sync
GET/v1/meu-ip
GET/v1/diagnostics
GET/v1/speedtest/config
POST/v1/speedtest/result

🎫 Chamados de Suporte

GET/v1/tickets
POST/v1/tickets
GET/v1/tickets/{id}
POST/v1/tickets/{id}/reply
POST/v1/tickets/{id}/attachments
GET/v1/occurrence-types
GET/v1/technicians

🔔 Notificações

GET/v1/notifications
GET/v1/notifications/unread-count
POST/v1/notifications/read-all
POST/v1/notifications/fcm-token
POST/v1/notifications/{id}/read

📡 Planos e Infraestrutura ISP

GET/v1/user/plan
POST/v1/plans/upgrade
GET/v1/plans
GET/v1/olts
POST/v1/onus/sync

⚖️ LGPD

POST/v1/consents
DEL/v1/consents
POST/v1/account/solicitar-exclusao
GET/v1/account/confirmar-exclusao/{token}

🔗 Webhooks (público)

POST/v1/webhooks/asaas

Autenticado via header asaas-access-token

⚙️ Sync SGP (admin)

POST/v1/sync/users/import
POST/v1/sync/users/sync
POST/v1/sync/occurrence-types
POST/v1/sync/technicians
POST/v1/sync/plans

Retornam 202 — apenas enfileiram trabalho

⏰ Agendamento Cron (SGP)

* * * * * cd /home1/vitra295/public_html/djtelecom/api && /usr/local/bin/ea-php85 artisan schedule:run >> /dev/null 2>&1
02:00sgp:import-sgp-users
03:00sgp:sync-technicians
03:10sgp:sync-plans
03:20sgp:sync-occurrence-types
03:30sgp:sync-users
04:00sgp:sync-internet-usage
00:00sgp:sync-invoices
00:30sgp:sync-asaas-ids
08:00invoices:notify-upcoming