Skip to Content
API ReferenceRingkasan

API Reference

Referensi lengkap semua endpoint yang tersedia di Fumai Mobile API.

Base URL

https://fumai.app/api/mobile/v1

Endpoint Overview

Auth

MethodEndpointAuthKeterangan
POST/auth/check-emailCek status email (langkah pertama)
POST/auth/loginLogin dengan email + password
POST/auth/registerRegister (auto-register)
POST/auth/verify-emailVerifikasi email dengan OTP
POST/auth/resend-verificationKirim ulang kode OTP
POST/auth/googleLogin/register via Google OAuth
POST/auth/appleLogin/register via Apple Sign In
POST/auth/refreshRefresh access token
GET/auth/meJWTGet current user
POST/auth/logoutJWTLogout
GET/auth/sessionsJWTList active sessions
POST/auth/sessionsJWTRevoke session
POST/auth/set-initial-passwordJWTSet password (untuk user OAuth/email-only)

Password Reset

MethodEndpointAuthKeterangan
POST/auth/forgot-passwordKirim email reset password
GET/auth/reset-passwordVerifikasi reset token
POST/auth/reset-passwordReset password
POST/auth/report-issueLaporkan masalah

Onboarding

MethodEndpointAuthKeterangan
GET/onboarding/statusJWTCek status onboarding
POST/onboarding/save-profileJWTSimpan profil (incremental)
POST/onboarding/upload-photoJWTUpload foto profil
GET/onboarding/optionsOpsi onboarding (dynamic)
POST/onboarding/save-preferencesJWTSimpan preferensi
POST/onboarding/save-permissionsJWTSimpan permissions + selesaikan onboarding

Locations

MethodEndpointAuthKeterangan
GET/locations?type=countriesList negara
GET/locations?type=regionsList provinsi
GET/locations?type=citiesList kota

Push Notification (FCM)

MethodEndpointAuthKeterangan
POST/notifications/fcmJWTRegister FCM token
GET/notifications/fcmJWTList registered devices
DELETE/notifications/fcmJWTUnregister FCM token

Dashboard / Home

MethodEndpointAuthKeterangan
GET/dashboard/homeJWTAggregator data home (one round-trip)
GET/dashboard/statsJWTStats agregat
GET/dashboard/health-scoreJWTHealth score mingguan + tips
GET/dashboard/weekly-overviewJWTStrip 7 hari aktivitas

Feed

MethodEndpointAuthKeterangan
GET/feedJWTList feed (cursor pagination)
POST/feedJWTBuat post baru
GET/feed/:idJWTGet single post
DELETE/feed/:idJWTSoft-delete post (author only)
POST/feed/:id/likeJWTLike post
DELETE/feed/:id/likeJWTUnlike post
GET/feed/:id/commentJWTList comments
POST/feed/:id/commentJWTBuat comment/reply

Stories

MethodEndpointAuthKeterangan
GET/storiesJWTGet story rings
GET/stories?userId=:idJWTGet stories user tertentu
POST/storiesJWTBuat story baru
GET/stories/:idJWTGet single story (auto-mark viewed)
DELETE/stories/:idJWTDelete story (author only)
POST/stories/:id/reactJWTReact story dengan emoji

FitMatch

MethodEndpointAuthKeterangan
GET/fitmatch/profileJWTGet own profile
POST/fitmatch/profileJWTCreate profile
PUT/fitmatch/profileJWTUpdate profile
DELETE/fitmatch/profileJWTDelete profile
GET/fitmatch/profile/:idJWTView other profile
GET/fitmatch/photosJWTGet photos
POST/fitmatch/photosJWTUpload photo
PUT/fitmatch/photosJWTReorder photos
DELETE/fitmatch/photosJWTDelete photo
GET/fitmatch/discoverJWTGet discover profiles
POST/fitmatch/swipeJWTSwipe (like/pass)
GET/fitmatch/matchesJWTGet matches
GET/fitmatch/chat/:matchIdJWTGet chat room
POST/fitmatch/chat/:matchId/messagesJWTSend message
POST/fitmatch/chat/:matchId/readJWTMark as read
DELETE/fitmatch/chat/:matchIdJWTUnmatch
POST/fitmatch/chat/:matchId/typingJWTTyping indicator
GET/fitmatch/profile/venuesJWTGet venues
POST/fitmatch/profile/venuesJWTAdd venue
PUT/fitmatch/profile/venuesJWTReorder/update venue
DELETE/fitmatch/profile/venuesJWTDelete venue
POST/fitmatch/blockJWTBlock user
GET/fitmatch/blockJWTGet blocked users
DELETE/fitmatch/blockJWTUnblock user
POST/fitmatch/reportJWTReport user
GET/fitmatch/reportJWTGet my reports
GET/fitmatch/settingsJWTGet settings
PUT/fitmatch/settingsJWTUpdate settings
DELETE/fitmatch/settingsJWTDelete FitMatch profile
GET/fitmatch/verificationJWTGet verification status
POST/fitmatch/verificationJWTSubmit verification photo
DELETE/fitmatch/verificationJWTCancel verification
GET/fitmatch/badgesJWTGet badges
POST/fitmatch/badgesJWTRefresh badges
GET/fitmatch/setup-draftJWTGet setup draft
POST/fitmatch/setup-draftJWTSave setup draft
DELETE/fitmatch/setup-draftJWTClear setup draft
GET/fitmatch/tutorial-seenJWTCheck tutorial status
POST/fitmatch/tutorial-seenJWTMark tutorial as seen
Last updated on