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-emailβ€”Cek status email (langkah pertama)
POST/auth/loginβ€”Login dengan email + password
POST/auth/registerβ€”Register (auto-register)
POST/auth/verify-emailβ€”Verifikasi email dengan OTP
POST/auth/resend-verificationβ€”Kirim ulang kode OTP
POST/auth/googleβ€”Login/register via Google OAuth
POST/auth/appleβ€”Login/register via Apple Sign In
POST/auth/refreshβ€”Refresh 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-passwordβ€”Kirim email reset password
GET/auth/reset-passwordβ€”Verifikasi reset token
POST/auth/reset-passwordβ€”Reset password
POST/auth/report-issueβ€”Laporkan masalah

Onboarding

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

Locations

MethodEndpointAuthKeterangan
GET/locations?type=countriesβ€”List negara
GET/locations?type=regionsβ€”List provinsi
GET/locations?type=citiesβ€”List kota

Push Notification (FCM)

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

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/gymsJWTGet gyms
POST/fitmatch/profile/gymsJWTAdd gym
PUT/fitmatch/profile/gymsJWTReorder/update gym
DELETE/fitmatch/profile/gymsJWTDelete gym
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
Last updated on