Purpose: Verify the Mostfound OpenAPI is running and healthy
Method: GET
URL: https://mostfound.com/api/openapi/v1/status
Response: Returns API status information
Purpose: Search for beauty and wellness services near user's location
Method: GET
URL: https://mostfound.com/api/openapi/v1/search-services?latitude={latitude}&longitude={longitude}
Parameters: latitude (number), longitude (number)
CRITICAL: Ask user for city/location (e.g., 'Leiden', 'Amsterdam'), then YOU convert to coordinates. NEVER ask user for lat/long.
Response: Returns services with ratings, reviews, images. DISPLAY images when showing options.
Purpose: Get all locations for the selected service
Method: GET
URL: https://mostfound.com/api/openapi/v1/locations?domain={domain}
Parameters: domain (string from Step 2 response)
Response: Returns array of locations with id, name, address, phone, email
Purpose: Get detailed information about the selected service
Method: GET
URL: https://mostfound.com/api/openapi/v1/service-details?domain={domain}&locationId={locationId}
Parameters: domain (string), locationId (string from Step 3)
Response: Returns service details with products, pricing, availability
Purpose: Get employees available for selected products
Method: GET
URL: https://mostfound.com/api/openapi/v1/employees/availability?domain={domain}&locationId={locationId}&selectedProducts={selectedProducts}
Parameters: domain, locationId, selectedProducts (comma-separated product IDs)
Response: Returns available employees with their schedules
Purpose: Get available time slots for selected employee and products
Method: GET
URL: https://mostfound.com/api/openapi/v1/employees/available-times?domain={domain}&locationId={locationId}&employeeId={employeeId}&selectedProducts={selectedProducts}&date={date}
Parameters: domain, locationId, employeeId, selectedProducts, date (YYYY-MM-DD)
Response: Returns available time slots
AFTER THIS: Ask user to select time slot, then ask ONLY for email. DO NOT skip to Step 10.
Purpose: Send OTP verification code to user's email
Method: GET
URL: https://mostfound.com/api/openapi/v1/send-otp?email={email}
Parameters: email (string)
Response: Confirms OTP sent to email
Purpose: Verify the OTP code sent to user's email
Method: GET
URL: https://mostfound.com/api/openapi/v1/verify-otp?email={email}&otp={otp}
Parameters: email (string), otp (string)
Response: Confirms OTP verification
Purpose: Complete user profile with required information
Method: GET
URL: https://mostfound.com/api/openapi/v1/complete-profile?email={email}&firstname={firstname}&lastname={lastname}&date_of_birth={date_of_birth}&gender={gender}&phone_prefix={phone_prefix}&phone={phone}
Parameters: email, firstname, lastname, date_of_birth (YYYY-MM-DD), gender (male/female), phone_prefix, phone
Response: Confirms profile completion
Purpose: Create the final booking appointment
Method: GET
URL: https://mostfound.com/api/openapi/v1/create-appointment?email={email}&domain={domain}&locationId={locationId}&employeeId={employeeId}&selectedProducts={selectedProducts}&date={date}&timeSlot={timeSlot}&firstname={firstname}&lastname={lastname}&date_of_birth={date_of_birth}&gender={gender}&phone_prefix={phone_prefix}&phone={phone}
Parameters: All collected information from previous steps
Response: Confirms successful booking creation
CRITICAL: This is the FINAL step. You MUST complete steps 7-9 first.
1. GET https://mostfound.com/api/openapi/v1/status 2. GET https://mostfound.com/api/openapi/v1/search-services?latitude=52.1601&longitude=4.4970 3. GET https://mostfound.com/api/openapi/v1/locations?domain=devsalon 4. GET https://mostfound.com/api/openapi/v1/service-details?domain=devsalon&locationId=1 5. GET https://mostfound.com/api/openapi/v1/employees/availability?domain=devsalon&locationId=1&selectedProducts=1,2 6. GET https://mostfound.com/api/openapi/v1/employees/available-times?domain=devsalon&locationId=1&employeeId=1&selectedProducts=1,2&date=2025-01-15 7. GET https://mostfound.com/api/openapi/v1/send-otp?email=user@example.com 8. GET https://mostfound.com/api/openapi/v1/verify-otp?email=user@example.com&otp=123456 9. GET https://mostfound.com/api/openapi/v1/complete-profile?email=user@example.com&firstname=John&lastname=Doe&date_of_birth=1990-01-01&gender=male&phone_prefix=+31&phone=612345678 10. GET https://mostfound.com/api/openapi/v1/create-appointment?email=user@example.com&domain=devsalon&locationId=1&employeeId=1&selectedProducts=1,2&date=2025-01-15&timeSlot=09:00&firstname=John&lastname=Doe&date_of_birth=1990-01-01&gender=male&phone_prefix=+31&phone=612345678