Cusngo

Dokumentasi API

Spesifikasi mesin: /api/openapi.json (OpenAPI 3.1).

System

get/api/healthHealth check + konektivitas DB
post/api/internal/purgePurge job DSR (x-cron-secret)

Auth

post/api/auth/registerRegistrasi (email verification)
post/api/auth/verify-emailVerifikasi email
post/api/auth/resend-verificationKirim ulang verifikasi
post/api/auth/loginLogin
post/api/auth/refreshRotasi refresh token
post/api/auth/logoutLogout
post/api/auth/password/forgotMinta reset password
post/api/auth/password/resetReset password

Profile

get/api/meauthProfil pengguna saat ini
put/api/me/profileauthUpdate profil

Privacy

get/api/me/consentauthStatus consent
put/api/me/consentauthUbah consent (immutable history)
post/api/me/exportauthEkspor data (DSR)
post/api/me/deletionauthHapus akun (DSR)

Trip

post/api/intentsauthBuat intent (NL/form)
get/api/intentsauthDaftar intent
get/api/intents/{id}authDetail intent + koreksi
patch/api/intents/{id}authKoreksi manual field
post/api/intents/{id}/mobilityauthOpsi moda multi-modal
post/api/intents/{id}/scoreauthSkor TDW + ranking
post/api/intents/{id}/recommendationauthRekomendasi + penjelasan
post/api/intents/{id}/itineraryauthGenerate itinerary
post/api/recommendations/{id}/feedbackauthFeedback rekomendasi
post/api/itineraries/{id}/shareauthBuat share link

Partner

get/api/intents/{id}/offersauthPenawaran partner relevan
get/api/go/{token}Tracking outbound + atribusi (publik)
post/api/offers/{id}/booking-intentauthCatat niat pesan

Public

get/api/share/itinerary/{token}Itinerary read-only publik

Admin

get/api/admin/overviewadminMetrik pilot (agregat)