Tampilan
Endpoint User & Company
Legenda middleware: auth = JWT, isUser = company-scoping, upload = file upload.
/api/v1/users — routes/userRoutes.js
| Method | Path | Handler | Middleware |
|---|---|---|---|
| POST | /login | user.login | — |
| POST | /signup | user.signUp | — |
| GET | / | user.getUsers | auth |
| GET | /search | user.getUser | auth |
| POST | /change-password | user.changePassword | auth |
| POST | /forgot-password | user.forgotPassword | — |
| POST | /reset-password/ | user.resetPassword | — |
| GET | /reset-password | user.validLink | — |
| POST | /confirm-email | user.confirmationEmail | — |
| GET | /check-status | user.checkStatusConfirmation | auth |
| POST | /resend-confirm-email | user.resendConfirmation | auth |
| POST | /resend-confirm-email-no-auth | user.resendConfirmationNoAuth | — |
| POST | /add-contact | user.addContact | auth |
| POST | /confirm-new-contact | user.confirmationNewContact | — |
| GET | /info-profile | user.infoProfile | auth |
| POST | /edit-contact | user.editProfile | auth |
| POST | /delete-contact | user.deleteContact | auth |
| GET | /check-email | user.checkUser | — |
| POST | /counter-add | user.addUnlockCounter | auth |
| GET | /notification/list | user.getListUserNotification | auth |
| GET | /notification/detail | user.getDetailUserNotification | auth |
| POST | /notification/read-all | user.readUserNotification | auth |
/api/v1/companies — routes/companyRoutes.js
Semua route mewarisi auth dari mount parent di routes/index.js.
| Method | Path | Handler | Middleware tambahan |
|---|---|---|---|
| GET | /companyDetails/search | company.getDetailsCompany | isUser |
| POST | /company-detail | company.addDetailsCompany | — |
| POST | /company-email-detail | company.addEmailDetailsCompany | — |
| POST | /company-detail/patch | company.editDetailsCompany | upload |
| POST | /photo/patch | company.updatePhoto | upload |
| POST | /npwp/patch | company.updateNpwp | upload |
| GET | /info-account-smtp | company.infoAccountSMTP | — |
| GET | /info-service-setup | company.infoServiceSetUp | — |
| GET | /info-company | company.infoCompany | — |
| GET | /info-contact | company.infoContact | — |
| POST | /active-relay | company.relayActive | — |
| POST | /unlock-relay | company.unlockRelay | — |
| GET | /get-details | company.getDetails | — |
| GET / POST | /notification-config | company.get/changeNotificationCompany | — |
| POST | /set-up-config | company.changeSetupConfig | — |
| GET | /get-unlock-relay | company.getUnlockCounter | — |
| GET | /get-detail-subscription | company.getDetailSubscription | — |
| GET | /summary-package | company.getQuotaUsage | — |
| GET / POST / PATCH | /email-api-token | company.get/generate/renewEmailApiToken | — |
| GET | /generate-setup-script | company.generateScriptUrl | — |
TIP
Endpoint email-api-token dan generate-setup-script adalah inti dari Alur Pengiriman Email.
/api/v1/reports — routes/reportsRoutes.js
Semua route mewarisi auth dari mount parent.
| Method | Path | Handler |
|---|---|---|
| GET | /email-summary | reports.emailSentSummary |
| GET | /email-reports-perday | reports.emailReportsPerDay |
| GET | /reports-most | reports.mostReportsSummary |
| GET | /log-email-delivery/all | reports.logDeliveryEmail |
| GET | /log-email-delivery/details | reports.logDetailsDeliveryEmail |
| GET | /count-email-delivery | reports.countEmailDeliveryReport |
| GET | /daily-email-delivery/all | reports.dailyEmailDeliveryReport |
| GET | /daily-email-delivery/search | reports.detailsDailyEmailDeliveryReport |
/api/v1/suppression — routes/suppressionRoutes.js
| Method | Path | Handler | Middleware |
|---|---|---|---|
| GET | / | suppressionController.getSuppressionlistController | auth |
| DELETE | / | suppressionController.deleteSuppressionlistController | auth |
| POST | / | suppressionController.addSuppressionlistController | auth |
| GET | /history | suppressionController.getSuppressionHistoryController | auth |