Skip to content

Endpoint User & Company

Legenda middleware: auth = JWT, isUser = company-scoping, upload = file upload.

/api/v1/usersroutes/userRoutes.js

MethodPathHandlerMiddleware
POST/loginuser.login
POST/signupuser.signUp
GET/user.getUsersauth
GET/searchuser.getUserauth
POST/change-passworduser.changePasswordauth
POST/forgot-passworduser.forgotPassword
POST/reset-password/user.resetPassword
GET/reset-passworduser.validLink
POST/confirm-emailuser.confirmationEmail
GET/check-statususer.checkStatusConfirmationauth
POST/resend-confirm-emailuser.resendConfirmationauth
POST/resend-confirm-email-no-authuser.resendConfirmationNoAuth
POST/add-contactuser.addContactauth
POST/confirm-new-contactuser.confirmationNewContact
GET/info-profileuser.infoProfileauth
POST/edit-contactuser.editProfileauth
POST/delete-contactuser.deleteContactauth
GET/check-emailuser.checkUser
POST/counter-adduser.addUnlockCounterauth
GET/notification/listuser.getListUserNotificationauth
GET/notification/detailuser.getDetailUserNotificationauth
POST/notification/read-alluser.readUserNotificationauth

/api/v1/companiesroutes/companyRoutes.js

Semua route mewarisi auth dari mount parent di routes/index.js.

MethodPathHandlerMiddleware tambahan
GET/companyDetails/searchcompany.getDetailsCompanyisUser
POST/company-detailcompany.addDetailsCompany
POST/company-email-detailcompany.addEmailDetailsCompany
POST/company-detail/patchcompany.editDetailsCompanyupload
POST/photo/patchcompany.updatePhotoupload
POST/npwp/patchcompany.updateNpwpupload
GET/info-account-smtpcompany.infoAccountSMTP
GET/info-service-setupcompany.infoServiceSetUp
GET/info-companycompany.infoCompany
GET/info-contactcompany.infoContact
POST/active-relaycompany.relayActive
POST/unlock-relaycompany.unlockRelay
GET/get-detailscompany.getDetails
GET / POST/notification-configcompany.get/changeNotificationCompany
POST/set-up-configcompany.changeSetupConfig
GET/get-unlock-relaycompany.getUnlockCounter
GET/get-detail-subscriptioncompany.getDetailSubscription
GET/summary-packagecompany.getQuotaUsage
GET / POST / PATCH/email-api-tokencompany.get/generate/renewEmailApiToken
GET/generate-setup-scriptcompany.generateScriptUrl

TIP

Endpoint email-api-token dan generate-setup-script adalah inti dari Alur Pengiriman Email.

/api/v1/reportsroutes/reportsRoutes.js

Semua route mewarisi auth dari mount parent.

MethodPathHandler
GET/email-summaryreports.emailSentSummary
GET/email-reports-perdayreports.emailReportsPerDay
GET/reports-mostreports.mostReportsSummary
GET/log-email-delivery/allreports.logDeliveryEmail
GET/log-email-delivery/detailsreports.logDetailsDeliveryEmail
GET/count-email-deliveryreports.countEmailDeliveryReport
GET/daily-email-delivery/allreports.dailyEmailDeliveryReport
GET/daily-email-delivery/searchreports.detailsDailyEmailDeliveryReport

/api/v1/suppressionroutes/suppressionRoutes.js

MethodPathHandlerMiddleware
GET/suppressionController.getSuppressionlistControllerauth
DELETE/suppressionController.deleteSuppressionlistControllerauth
POST/suppressionController.addSuppressionlistControllerauth
GET/historysuppressionController.getSuppressionHistoryControllerauth