API Reference
Referensi lengkap semua endpoint yang tersedia di Fumai Mobile API.
Base URL
https://fumai.app/api/mobile/v1Endpoint Overview
Auth
| Method | Endpoint | Auth | Keterangan |
|---|---|---|---|
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/me | JWT | Get current user |
POST | /auth/logout | JWT | Logout |
GET | /auth/sessions | JWT | List active sessions |
POST | /auth/sessions | JWT | Revoke session |
POST | /auth/set-initial-password | JWT | Set password (untuk user OAuth/email-only) |
Password Reset
| Method | Endpoint | Auth | Keterangan |
|---|---|---|---|
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
| Method | Endpoint | Auth | Keterangan |
|---|---|---|---|
GET | /onboarding/status | JWT | Cek status onboarding |
POST | /onboarding/save-profile | JWT | Simpan profil (incremental) |
POST | /onboarding/upload-photo | JWT | Upload foto profil |
GET | /onboarding/options | β | Opsi onboarding (dynamic) |
POST | /onboarding/save-preferences | JWT | Simpan preferensi |
POST | /onboarding/save-permissions | JWT | Simpan permissions + selesaikan onboarding |
Locations
| Method | Endpoint | Auth | Keterangan |
|---|---|---|---|
GET | /locations?type=countries | β | List negara |
GET | /locations?type=regions | β | List provinsi |
GET | /locations?type=cities | β | List kota |
Push Notification (FCM)
| Method | Endpoint | Auth | Keterangan |
|---|---|---|---|
POST | /notifications/fcm | JWT | Register FCM token |
GET | /notifications/fcm | JWT | List registered devices |
DELETE | /notifications/fcm | JWT | Unregister FCM token |
FitMatch
| Method | Endpoint | Auth | Keterangan |
|---|---|---|---|
GET | /fitmatch/profile | JWT | Get own profile |
POST | /fitmatch/profile | JWT | Create profile |
PUT | /fitmatch/profile | JWT | Update profile |
DELETE | /fitmatch/profile | JWT | Delete profile |
GET | /fitmatch/profile/:id | JWT | View other profile |
GET | /fitmatch/photos | JWT | Get photos |
POST | /fitmatch/photos | JWT | Upload photo |
PUT | /fitmatch/photos | JWT | Reorder photos |
DELETE | /fitmatch/photos | JWT | Delete photo |
GET | /fitmatch/discover | JWT | Get discover profiles |
POST | /fitmatch/swipe | JWT | Swipe (like/pass) |
GET | /fitmatch/matches | JWT | Get matches |
GET | /fitmatch/chat/:matchId | JWT | Get chat room |
POST | /fitmatch/chat/:matchId/messages | JWT | Send message |
POST | /fitmatch/chat/:matchId/read | JWT | Mark as read |
DELETE | /fitmatch/chat/:matchId | JWT | Unmatch |
POST | /fitmatch/chat/:matchId/typing | JWT | Typing indicator |
GET | /fitmatch/profile/gyms | JWT | Get gyms |
POST | /fitmatch/profile/gyms | JWT | Add gym |
PUT | /fitmatch/profile/gyms | JWT | Reorder/update gym |
DELETE | /fitmatch/profile/gyms | JWT | Delete gym |
POST | /fitmatch/block | JWT | Block user |
GET | /fitmatch/block | JWT | Get blocked users |
DELETE | /fitmatch/block | JWT | Unblock user |
POST | /fitmatch/report | JWT | Report user |
GET | /fitmatch/report | JWT | Get my reports |
GET | /fitmatch/settings | JWT | Get settings |
PUT | /fitmatch/settings | JWT | Update settings |
DELETE | /fitmatch/settings | JWT | Delete FitMatch profile |
GET | /fitmatch/verification | JWT | Get verification status |
POST | /fitmatch/verification | JWT | Submit verification photo |
DELETE | /fitmatch/verification | JWT | Cancel verification |
GET | /fitmatch/badges | JWT | Get badges |
POST | /fitmatch/badges | JWT | Refresh badges |
Last updated on