# AI Fitness & Nutrition Coach > aifitapp is a subscription-based, AI-powered fitness and nutrition platform that generates personalized training programs and dietary plans using evidence-based principles. Users interact with an intelligent chatbot to receive customized workout regimes, meal recommendations, exercise and food alternatives, and educational guidance—all governed by strict safety and scientific protocols. This documentation is designed to be consumed by both humans and AI agents. It provides comprehensive information about the backend services, APIs, data models, and integration patterns. ## Detailed Documentation Files For comprehensive documentation, the following detailed files are available: - **[llms-full.txt](/document/llms-full.txt)**: Complete documentation including all service designs, data models, and API specifications in a single document with nested table of contents. - **[llms-restapi.txt](/document/llms-restapi.txt)**: REST API focused documentation containing all service REST API guides combined. Ideal for understanding HTTP endpoints, request/response formats, and integration patterns. - **[llms-prompts.txt](/document/llms-prompts.txt)**: Frontend development prompts for AI-assisted UI building. Contains detailed specifications for implementing frontend features with data models, API endpoints, and UI requirements. ## Documentation Overview # AI Fitness & Nutrition Coach Version : 1.0.146 aifitapp is a subscription-based, AI-powered fitness and nutrition platform that generates personalized training programs and dietary plans using evidence-based principles. Users interact with an intelligent chatbot to receive customized workout regimes, meal recommendations, exercise and food alternatives, and educational guidance—all governed by strict safety and scientific protocols. ## How to Use Project Documents The `Aifitapp` project has been designed and generated using **Mindbricks**, a powerful microservice-based backend generation platform. All documentation is automatically produced by the **Mindbricks Genesis Engine**, based on the high-level architectural patterns defined by the user or inferred by AI. This documentation set is intended for both **AI agents** and **human developers**—including frontend and backend engineers—who need precise and structured information about how to interact with the backend services of this project. Each document reflects the live architecture of the system, providing a reliable reference for API consumption, data models, authentication flows, and business logic. By following this documentation, developers can seamlessly integrate with the backend, while AI agents can use it to reason about the service structure, make accurate decisions, or even generate compatible client-side code. ## Accessing Project Services Each service generated by Mindbricks is exposed via a **dedicated REST API** endpoint. Every service documentation set includes the **base URL** of that service along with the **specific API paths** for each available route. Before consuming any API, developers or agents must understand the service URL structure and environment-specific endpoints. ### Service Endpoint Structure | Environment | URL Pattern Example | |-------------|---------------------| | **Preview** | `https://appaili.prw.mindbricks.com/auth-api` | | **Staging** | `https://appaili-stage.mindbricks.co/auth-api` | | **Production** | `https://appaili.mindbricks.co/auth-api` | Replace `auth` with the actual service name as lower case (e.g., `order-api`, `bff-service`, customermanagement-api etc.). ### Environment Usage Notes * **Preview APIs** become accessible after a project is previewed inside the Mindbricks platform. These are ideal for development and testing. * **Staging** and **Production** APIs are only accessible after the project is deployed to cloud environments provisioned via Mindbricks. * In some cases, the project owner may choose to deploy services on their **own infrastructure**. In such scenarios, the service base URLs will be **custom** and should be communicated manually by the project owner to developers or AI agents. > **Frontend applications** should be designed to **easily switch between environments**, allowing dynamic endpoint targeting for Preview, Staging, and Production. ## Getting Started: Use the Auth Service First Before interacting with other services in the `Aifitapp` project, **AI agents and developers should begin by integrating with the Auth Service**. Mindbricks automatically generates a dedicated authentication microservice based on the project’s authentication definitions provided by the architect. This service provides the essential user and access management foundation for the project. Agents should first utilize the Auth Service to: * Register and authenticate users (login) * Manage users, roles, and permissions * Handle user groups (if defined) * Support multi-tenancy logic (if configured) * Perform Policy-Based Access Control (PBAC), if activated by the architect ### Auth Service Documentation Use the following resources to understand and integrate the Auth Service: * **REST API Guide** – ideal for frontend and direct HTTP usage [Auth REST API Guide](/document/docs/auth-service/rest-api-guide.html) * **Event Guide** – helpful for event-driven or cross-service integrations [Auth Event Guide](/document/docs/auth-service/event-guide.html) * **Service Design Document** – overall structure, patterns, and logic [Auth Service Design](/document/docs/auth-service/service-design.html) > **Note:** For most frontend use cases, the **REST API Guide** will be the primary source. The **Event Guide** and **Service Design** documents are especially useful when integrating with other backend microservices or building systems that interact with the auth service indirectly. ## Using the BFF (Backend-for-Frontend) Service In Mindbricks, all backend services are designed with an advanced **CQRS (Command Query Responsibility Segregation)** architecture. Within this architecture, **business services** are responsible for managing their respective domains and ensuring the accuracy and freshness of domain data. The **BFF service** complements these business services by providing a **read-only** aggregation and query layer tailored specifically for frontend and client-side applications. ### Key Principles of the BFF Service * **Elasticsearch Replicas for Fast Queries:** Each data object managed by a business service is automatically replicated as an **Elasticsearch index**, making it accessible for fast, frontend-oriented queries through the BFF. * **Cross-Service Data Aggregation:** The BFF offers an **aggregation layer** capable of combining data across multiple services, enabling complex filters, searches, and unified views of related data. * **Read-Only by Design:** The BFF service is **strictly read-only**. All create, update, or delete operations must be performed through the relevant business services, or via event-driven sagas if designed. ### BFF Service Documentation * **REST API Guide** – querying aggregated and indexed data [BFF REST API Guide](/document/docs/bff-service/rest-api-guide.html) * **Event Guide** – syncing strategies across replicas [BFF Event Guide](/document/docs/bff-service/event-guide.html) * **Service Design** – aggregation patterns and index structures [BFF Service Design](/document/docs/bff-service/service-design.html) > **Tip:** Use the BFF service as the **main entry point for all frontend data queries**. It simplifies access, reduces round-trips, and ensures that data is shaped appropriately for the UI layer. ## Business Services Overview The `AI Fitness & Nutrition Coach` project consists of multiple **business services**, each responsible for managing a specific domain within the system. These services expose their own REST APIs and documentation sets, and are accessible based on the environment (Preview, Staging, Production). ### Usage Guidance Business services are primarily designed to: * Handle the **state and operations of domain data** * Offer **Create, Update, Delete** operations over owned entities * Serve **direct data queries** (`get`, `list`) for their own objects when needed For advanced query needs across multiple services or aggregated views, prefer using the [BFF service](#using-the-bff-backend-for-frontend-service). ### Available Business Services ### aiCoach Service **Description:** AI-powered fitness coaching service that generates personalized evidence-based training programs and nutrition plans, manages chatbowt interactions with full validation chains, handles dynamic program modifications via AI tool calls, tracks weaight measurements, enforces moderation and quotas, and provides admin endpoints for moderation history and usage analytics.a **Documentation:** * [REST API Guide](/document/docs/aiCoach-service/rest-api-guide.html) * [Event Guide](/document/docs/aiCoach-service/event-guide.html) * [Service Design](/document/docs/aiCoach-service/service-design.html) **Base URL Examples:** | Environment | URL | |-------------|---------------------| | **Preview** | `https://appaili.prw.mindbricks.com/aicoach-api` | | **Staging** | `https://appaili-stage.mindbricks.co/aicoach-api` | | **Production** | `https://appaili.mindbricks.co/aicoach-api` | ### subscription Service **Description:** Manages the single premium subscription plan lifecycle including activation, status tracking, cancellation, and admin-configurable pricing. Provides subscription status validation endpoints for other services to gate access to AI-powered featuresa.z **Documentation:** * [REST API Guide](/document/docs/subscription-service/rest-api-guide.html) * [Event Guide](/document/docs/subscription-service/event-guide.html) * [Service Design](/document/docs/subscription-service/service-design.html) **Base URL Examples:** | Environment | URL | |-------------|---------------------| | **Preview** | `https://appaili.prw.mindbricks.com/subscription-api` | | **Staging** | `https://appaili-stage.mindbricks.co/subscription-api` | | **Production** | `https://appaili.mindbricks.co/subscription-api` | ### agentHub Service **Description:** AI Agent Hub **Documentation:** * [REST API Guide](/document/docs/agentHub-service/rest-api-guide.html) * [Event Guide](/document/docs/agentHub-service/event-guide.html) * [Service Design](/document/docs/agentHub-service/service-design.html) **Base URL Examples:** | Environment | URL | |-------------|---------------------| | **Preview** | `https://appaili.prw.mindbricks.com/agenthub-api` | | **Staging** | `https://appaili-stage.mindbricks.co/agenthub-api` | | **Production** | `https://appaili.mindbricks.co/agenthub-api` | ## Connect via MCP (Model Context Protocol) All backend services in the `Aifitapp` project expose their Business APIs as **MCP tools**. These tools are aggregated by the **MCP-BFF** service into a single unified endpoint that external AI tools can connect to. ### Unified MCP Endpoint | Environment | StreamableHTTP (recommended) | SSE (legacy fallback) | |-------------|------------------------------|------------------------| | **Preview** | `https://appaili.prw.mindbricks.com/mcpbff-api/mcp` | `https://appaili.prw.mindbricks.com/mcpbff-api/mcp/sse` | | **Staging** | `https://appaili-stage.mindbricks.co/mcpbff-api/mcp` | `https://appaili-stage.mindbricks.co/mcpbff-api/mcp/sse` | | **Production** | `https://appaili.mindbricks.co/mcpbff-api/mcp` | `https://appaili.mindbricks.co/mcpbff-api/mcp/sse` | ### Authentication MCP connections require authentication via the `Authorization` header: - **API Key (recommended for AI agents):** `Authorization: Bearer sk_mbx_your_api_key_here` API keys are long-lived and don't expire like JWT tokens. Create one from the profile page. - **JWT Token:** `Authorization: Bearer {accessToken}` Use a valid access token obtained from the login API. > **OAuth is not supported** for MCP connections at this time. ### Connecting from Cursor Add the following to your project's `.cursor/mcp.json`: ```json { "mcpServers": { "appaili": { "url": "https://appaili.prw.mindbricks.com/mcpbff-api/mcp", "headers": { "Authorization": "Bearer sk_mbx_your_api_key_here" } } } } ``` ### Connecting from Claude Desktop Add to your Claude Desktop configuration (`claude_desktop_config.json`): ```json { "mcpServers": { "appaili": { "url": "https://appaili.prw.mindbricks.com/mcpbff-api/mcp", "headers": { "Authorization": "Bearer sk_mbx_your_api_key_here" } } } } ``` ### What's Available Once connected, the AI tool can discover and call all Business API tools from all services — CRUD operations, custom queries, file operations, and more. The MCP-BFF handles routing each tool call to the correct backend service and propagates your authentication context. --- ## Conclusion This documentation set provides a comprehensive guide for understanding and consuming the `AI Fitness & Nutrition Coach` backend, generated by the Mindbricks platform. It is structured to support both AI agents and human developers in navigating authentication, data access, service responsibilities, and system architecture. To summarize: * Start with the **Auth Service** to manage users, roles, sessions, and permissions. * Use the **BFF Service** for optimized, read-only data queries and cross-service aggregation. * Refer to the **Business Services** when you need to manage domain-specific data or perform direct CRUD operations. Each service offers a complete set of documentation—REST API guides, event interface definitions, and design insights—to help you integrate efficiently and confidently. Whether you are building a frontend application, configuring an automation agent, or simply exploring the architecture, this documentation is your primary reference for working with the backend of this project. > For environment-specific access, ensure you're using the correct base URLs (Preview, Staging, Production), and coordinate with the project owner for any custom deployments. ## Table of Contents ### Getting Started - [Introduction](/document/docs/intro.html): AI Fitness & Nutrition Coach ### Frontend Prompts - [Project Introduction & Setup](/document/docs/frontend-prompts/frontend-prompt-1-projectIntroduction.html): Project Introduction & Setup - [Authentication Management](/document/docs/frontend-prompts/frontend-prompt-2-authManagement.html): Authentication Management - [Verification Management](/document/docs/frontend-prompts/frontend-prompt-3-verification.html): Verification Management - [Profile Management](/document/docs/frontend-prompts/frontend-prompt-4-profile.html): Profile Management - [User Management](/document/docs/frontend-prompts/frontend-prompt-5-userManagement.html): User Management - [MCP BFF Integration](/document/docs/frontend-prompts/frontend-prompt-6-mcpbffIntegration.html): MCP BFF Integration - [AiCoach Service](/document/docs/frontend-prompts/frontend-prompt-7-aiCoachService.html): AiCoach Service - [AiCoach Service AdditionalQuota Payment Flow](/document/docs/frontend-prompts/frontend-prompt-8-additionalQuota-payment-flow.html): AiCoach Service AdditionalQuota Payment Flow - [Subscription Service](/document/docs/frontend-prompts/frontend-prompt-9-subscriptionService.html): Subscription Service - [Subscription Service Subscription Payment Flow](/document/docs/frontend-prompts/frontend-prompt-10-subscription-payment-flow.html): Subscription Service Subscription Payment Flow - [AgentHub Service](/document/docs/frontend-prompts/frontend-prompt-11-agentHubService.html): AgentHub Service ### Auth Service - [Service Design](/document/docs/auth-service/service-design.html): Service Design Specification - [REST API Guide](/document/docs/auth-service/rest-api-guide.html): REST API GUIDE - [Event Guide](/document/docs/auth-service/event-guide.html): . #### Data Objects - [user Design](/document/docs/auth-service/user-design.html): Documentation - [userAvatarsFile Design](/document/docs/auth-service/userAvatarsFile-design.html): Documentation #### Business APIs - [getUser API](/document/docs/auth-service/business-api/getUser-api-design.html): Business API Design Specification - `Get User` - [updateUser API](/document/docs/auth-service/business-api/updateUser-api-design.html): Business API Design Specification - `Update User` - [updateProfile API](/document/docs/auth-service/business-api/updateProfile-api-design.html): Business API Design Specification - `Update Profile` - [createUser API](/document/docs/auth-service/business-api/createUser-api-design.html): Business API Design Specification - `Create User` - [deleteUser API](/document/docs/auth-service/business-api/deleteUser-api-design.html): Business API Design Specification - `Delete User` - [archiveProfile API](/document/docs/auth-service/business-api/archiveProfile-api-design.html): Business API Design Specification - `Archive Profile` - [listUsers API](/document/docs/auth-service/business-api/listUsers-api-design.html): Business API Design Specification - `List Users` - [searchUsers API](/document/docs/auth-service/business-api/searchUsers-api-design.html): Business API Design Specification - `Search Users` - [updateUserRole API](/document/docs/auth-service/business-api/updateUserRole-api-design.html): Business API Design Specification - `Update Userrole` - [updateUserPassword API](/document/docs/auth-service/business-api/updateUserPassword-api-design.html): Business API Design Specification - `Update Userpassword` - [updateUserPasswordByAdmin API](/document/docs/auth-service/business-api/updateUserPasswordByAdmin-api-design.html): Business API Design Specification - `Update Userpasswordbyadmin` - [getBriefUser API](/document/docs/auth-service/business-api/getBriefUser-api-design.html): Business API Design Specification - `Get Briefuser` - [streamTest API](/document/docs/auth-service/business-api/streamTest-api-design.html): Business API Design Specification - `Stream Test` - [registerUser API](/document/docs/auth-service/business-api/registerUser-api-design.html): Business API Design Specification - `Register User` - [getUserAvatarsFile API](/document/docs/auth-service/business-api/getUserAvatarsFile-api-design.html): Business API Design Specification - `Get Useravatarsfile` - [listUserAvatarsFiles API](/document/docs/auth-service/business-api/listUserAvatarsFiles-api-design.html): Business API Design Specification - `List Useravatarsfiles` - [deleteUserAvatarsFile API](/document/docs/auth-service/business-api/deleteUserAvatarsFile-api-design.html): Business API Design Specification - `Delete Useravatarsfile` #### Database Buckets - [userAvatars Bucket](/document/docs/auth-service/db-buckets/userAvatars-bucket-design.html): Database Bucket Design Specification - `userAvatars` ### AiCoach Service - [Service Design](/document/docs/aiCoach-service/service-design.html): Service Design Specification - [REST API Guide](/document/docs/aiCoach-service/rest-api-guide.html): REST API GUIDE - [Event Guide](/document/docs/aiCoach-service/event-guide.html): . #### Data Objects - [chatMessage Design](/document/docs/aiCoach-service/chatMessage-design.html): Documentation - [coachConversation Design](/document/docs/aiCoach-service/coachConversation-design.html): Documentation - [mealPlan Design](/document/docs/aiCoach-service/mealPlan-design.html): Documentation - [moderationRecord Design](/document/docs/aiCoach-service/moderationRecord-design.html): Documentation - [planMeal Design](/document/docs/aiCoach-service/planMeal-design.html): Documentation - [programExercise Design](/document/docs/aiCoach-service/programExercise-design.html): Documentation - [quotaConfig Design](/document/docs/aiCoach-service/quotaConfig-design.html): Documentation - [trainingProgram Design](/document/docs/aiCoach-service/trainingProgram-design.html): Documentation - [userQuota Design](/document/docs/aiCoach-service/userQuota-design.html): Documentation - [weightLog Design](/document/docs/aiCoach-service/weightLog-design.html): Documentation - [banAppeals Design](/document/docs/aiCoach-service/banAppeals-design.html): Documentation - [additionalQuota Design](/document/docs/aiCoach-service/additionalQuota-design.html): Documentation - [sys_additionalQuotaPayment Design](/document/docs/aiCoach-service/sys_additionalQuotaPayment-design.html): Documentation - [sys_paymentCustomer Design](/document/docs/aiCoach-service/sys_paymentCustomer-design.html): Documentation - [sys_paymentMethod Design](/document/docs/aiCoach-service/sys_paymentMethod-design.html): Documentation #### Business APIs - [createChatMessage API](/document/docs/aiCoach-service/business-api/createChatMessage-api-design.html): Business API Design Specification - `Create Chatmessage` - [createCoachConversation API](/document/docs/aiCoach-service/business-api/createCoachConversation-api-design.html): Business API Design Specification - `Create Coachconversation` - [createQuotaConfig API](/document/docs/aiCoach-service/business-api/createQuotaConfig-api-design.html): Business API Design Specification - `Create Quotaconfig` - [createWeightLog API](/document/docs/aiCoach-service/business-api/createWeightLog-api-design.html): Business API Design Specification - `Create Weightlog` - [getChatMessage API](/document/docs/aiCoach-service/business-api/getChatMessage-api-design.html): Business API Design Specification - `Get Chatmessage` - [getCoachConversation API](/document/docs/aiCoach-service/business-api/getCoachConversation-api-design.html): Business API Design Specification - `Get Coachconversation` - [getMealPlan API](/document/docs/aiCoach-service/business-api/getMealPlan-api-design.html): Business API Design Specification - `Get Mealplan` - [getModerationRecord API](/document/docs/aiCoach-service/business-api/getModerationRecord-api-design.html): Business API Design Specification - `Get Moderationrecord` - [getMyQuota API](/document/docs/aiCoach-service/business-api/getMyQuota-api-design.html): Business API Design Specification - `Get Myquota` - [getPlanMeal API](/document/docs/aiCoach-service/business-api/getPlanMeal-api-design.html): Business API Design Specification - `Get Planmeal` - [getProgramExercise API](/document/docs/aiCoach-service/business-api/getProgramExercise-api-design.html): Business API Design Specification - `Get Programexercise` - [getQuotaConfig API](/document/docs/aiCoach-service/business-api/getQuotaConfig-api-design.html): Business API Design Specification - `Get Quotaconfig` - [getTrainingProgram API](/document/docs/aiCoach-service/business-api/getTrainingProgram-api-design.html): Business API Design Specification - `Get Trainingprogram` - [getUserQuota API](/document/docs/aiCoach-service/business-api/getUserQuota-api-design.html): Business API Design Specification - `Get Userquota` - [getWeightLog API](/document/docs/aiCoach-service/business-api/getWeightLog-api-design.html): Business API Design Specification - `Get Weightlog` - [listChatMessages API](/document/docs/aiCoach-service/business-api/listChatMessages-api-design.html): Business API Design Specification - `List Chatmessages` - [listCoachConversations API](/document/docs/aiCoach-service/business-api/listCoachConversations-api-design.html): Business API Design Specification - `List Coachconversations` - [listMealPlans API](/document/docs/aiCoach-service/business-api/listMealPlans-api-design.html): Business API Design Specification - `List Mealplans` - [listModerationRecords API](/document/docs/aiCoach-service/business-api/listModerationRecords-api-design.html): Business API Design Specification - `List Moderationrecords` - [listPlanMeals API](/document/docs/aiCoach-service/business-api/listPlanMeals-api-design.html): Business API Design Specification - `List Planmeals` - [listProgramExercises API](/document/docs/aiCoach-service/business-api/listProgramExercises-api-design.html): Business API Design Specification - `List Programexercises` - [listQuotaConfigs API](/document/docs/aiCoach-service/business-api/listQuotaConfigs-api-design.html): Business API Design Specification - `List Quotaconfigs` - [listTrainingPrograms API](/document/docs/aiCoach-service/business-api/listTrainingPrograms-api-design.html): Business API Design Specification - `List Trainingprograms` - [listUserQuotas API](/document/docs/aiCoach-service/business-api/listUserQuotas-api-design.html): Business API Design Specification - `List Userquotas` - [listWeightLogs API](/document/docs/aiCoach-service/business-api/listWeightLogs-api-design.html): Business API Design Specification - `List Weightlogs` - [updateQuotaConfig API](/document/docs/aiCoach-service/business-api/updateQuotaConfig-api-design.html): Business API Design Specification - `Update Quotaconfig` - [deleteModerationRecord API](/document/docs/aiCoach-service/business-api/deleteModerationRecord-api-design.html): Business API Design Specification - `Delete Moderationrecord` - [deletemealplan API](/document/docs/aiCoach-service/business-api/deletemealplan-api-design.html): Business API Design Specification - `Do Deletemealplan` - [deletetrainingprogram API](/document/docs/aiCoach-service/business-api/deletetrainingprogram-api-design.html): Business API Design Specification - `Do Deletetrainingprogram` - [updateModerationRecord API](/document/docs/aiCoach-service/business-api/updateModerationRecord-api-design.html): Business API Design Specification - `Update Moderationrecord` - [listmymoderationrecords API](/document/docs/aiCoach-service/business-api/listmymoderationrecords-api-design.html): Business API Design Specification - `Do Listmymoderationrecords` - [listBanAppeals API](/document/docs/aiCoach-service/business-api/listBanAppeals-api-design.html): Business API Design Specification - `List Banappeals` - [createBanAppeal API](/document/docs/aiCoach-service/business-api/createBanAppeal-api-design.html): Business API Design Specification - `Create Banappeal` - [updateBanAppeal API](/document/docs/aiCoach-service/business-api/updateBanAppeal-api-design.html): Business API Design Specification - `Update Banappeal` - [createAdditionalQuota API](/document/docs/aiCoach-service/business-api/createAdditionalQuota-api-design.html): Business API Design Specification - `Create Additionalquota` - [getMyAdditionalQuota API](/document/docs/aiCoach-service/business-api/getMyAdditionalQuota-api-design.html): Business API Design Specification - `Get Myadditionalquota` - [getAdditionalQuotaPayment API](/document/docs/aiCoach-service/business-api/getAdditionalQuotaPayment-api-design.html): Business API Design Specification - `Get Additionalquotapayment` - [listAdditionalQuotaPayments API](/document/docs/aiCoach-service/business-api/listAdditionalQuotaPayments-api-design.html): Business API Design Specification - `List Additionalquotapayments` - [createAdditionalQuotaPayment API](/document/docs/aiCoach-service/business-api/createAdditionalQuotaPayment-api-design.html): Business API Design Specification - `Create Additionalquotapayment` - [updateAdditionalQuotaPayment API](/document/docs/aiCoach-service/business-api/updateAdditionalQuotaPayment-api-design.html): Business API Design Specification - `Update Additionalquotapayment` - [deleteAdditionalQuotaPayment API](/document/docs/aiCoach-service/business-api/deleteAdditionalQuotaPayment-api-design.html): Business API Design Specification - `Delete Additionalquotapayment` - [getAdditionalQuotaPaymentByOrderId API](/document/docs/aiCoach-service/business-api/getAdditionalQuotaPaymentByOrderId-api-design.html): Business API Design Specification - `Get Additionalquotapaymentbyorderid` - [getAdditionalQuotaPaymentByPaymentId API](/document/docs/aiCoach-service/business-api/getAdditionalQuotaPaymentByPaymentId-api-design.html): Business API Design Specification - `Get Additionalquotapaymentbypaymentid` - [startAdditionalQuotaPayment API](/document/docs/aiCoach-service/business-api/startAdditionalQuotaPayment-api-design.html): Business API Design Specification - `Start Additionalquotapayment` - [refreshAdditionalQuotaPayment API](/document/docs/aiCoach-service/business-api/refreshAdditionalQuotaPayment-api-design.html): Business API Design Specification - `Refresh Additionalquotapayment` - [callbackAdditionalQuotaPayment API](/document/docs/aiCoach-service/business-api/callbackAdditionalQuotaPayment-api-design.html): Business API Design Specification - `Callback Additionalquotapayment` - [getPaymentCustomerByUserId API](/document/docs/aiCoach-service/business-api/getPaymentCustomerByUserId-api-design.html): Business API Design Specification - `Get Paymentcustomerbyuserid` - [listPaymentCustomers API](/document/docs/aiCoach-service/business-api/listPaymentCustomers-api-design.html): Business API Design Specification - `List Paymentcustomers` - [listPaymentCustomerMethods API](/document/docs/aiCoach-service/business-api/listPaymentCustomerMethods-api-design.html): Business API Design Specification - `List Paymentcustomermethods` - [Service Library](/document/docs/aiCoach-service/service-library.html): Service Library - `aiCoach` ### Subscription Service - [Service Design](/document/docs/subscription-service/service-design.html): Service Design Specification - [REST API Guide](/document/docs/subscription-service/rest-api-guide.html): REST API GUIDE - [Event Guide](/document/docs/subscription-service/event-guide.html): . #### Data Objects - [pricingConfig Design](/document/docs/subscription-service/pricingConfig-design.html): Documentation - [subscription Design](/document/docs/subscription-service/subscription-design.html): Documentation - [sys_subscriptionPayment Design](/document/docs/subscription-service/sys_subscriptionPayment-design.html): Documentation - [sys_paymentCustomer Design](/document/docs/subscription-service/sys_paymentCustomer-design.html): Documentation - [sys_paymentMethod Design](/document/docs/subscription-service/sys_paymentMethod-design.html): Documentation #### Business APIs - [cancelSubscription API](/document/docs/subscription-service/business-api/cancelSubscription-api-design.html): Business API Design Specification - `Cancel Subscription` - [checkSubscriptionStatus API](/document/docs/subscription-service/business-api/checkSubscriptionStatus-api-design.html): Business API Design Specification - `Check Subscriptionstatus` - [createPricingConfig API](/document/docs/subscription-service/business-api/createPricingConfig-api-design.html): Business API Design Specification - `Create Pricingconfig` - [deletePricingConfig API](/document/docs/subscription-service/business-api/deletePricingConfig-api-design.html): Business API Design Specification - `Delete Pricingconfig` - [getMySubscription API](/document/docs/subscription-service/business-api/getMySubscription-api-design.html): Business API Design Specification - `Get Mysubscription` - [getPricingConfig API](/document/docs/subscription-service/business-api/getPricingConfig-api-design.html): Business API Design Specification - `Get Pricingconfig` - [getSubscription API](/document/docs/subscription-service/business-api/getSubscription-api-design.html): Business API Design Specification - `Get Subscription` - [listPricingConfigs API](/document/docs/subscription-service/business-api/listPricingConfigs-api-design.html): Business API Design Specification - `List Pricingconfigs` - [listSubscriptions API](/document/docs/subscription-service/business-api/listSubscriptions-api-design.html): Business API Design Specification - `List Subscriptions` - [updatePricingConfig API](/document/docs/subscription-service/business-api/updatePricingConfig-api-design.html): Business API Design Specification - `Update Pricingconfig` - [createSubscription API](/document/docs/subscription-service/business-api/createSubscription-api-design.html): Business API Design Specification - `Create Subscription` - [test API](/document/docs/subscription-service/business-api/test-api-design.html): Business API Design Specification - `Do Test` - [getSubscriptionPayment API](/document/docs/subscription-service/business-api/getSubscriptionPayment-api-design.html): Business API Design Specification - `Get Subscriptionpayment` - [listSubscriptionPayments API](/document/docs/subscription-service/business-api/listSubscriptionPayments-api-design.html): Business API Design Specification - `List Subscriptionpayments` - [createSubscriptionPayment API](/document/docs/subscription-service/business-api/createSubscriptionPayment-api-design.html): Business API Design Specification - `Create Subscriptionpayment` - [updateSubscriptionPayment API](/document/docs/subscription-service/business-api/updateSubscriptionPayment-api-design.html): Business API Design Specification - `Update Subscriptionpayment` - [deleteSubscriptionPayment API](/document/docs/subscription-service/business-api/deleteSubscriptionPayment-api-design.html): Business API Design Specification - `Delete Subscriptionpayment` - [getSubscriptionPaymentByOrderId API](/document/docs/subscription-service/business-api/getSubscriptionPaymentByOrderId-api-design.html): Business API Design Specification - `Get Subscriptionpaymentbyorderid` - [getSubscriptionPaymentByPaymentId API](/document/docs/subscription-service/business-api/getSubscriptionPaymentByPaymentId-api-design.html): Business API Design Specification - `Get Subscriptionpaymentbypaymentid` - [startSubscriptionPayment API](/document/docs/subscription-service/business-api/startSubscriptionPayment-api-design.html): Business API Design Specification - `Start Subscriptionpayment` - [refreshSubscriptionPayment API](/document/docs/subscription-service/business-api/refreshSubscriptionPayment-api-design.html): Business API Design Specification - `Refresh Subscriptionpayment` - [callbackSubscriptionPayment API](/document/docs/subscription-service/business-api/callbackSubscriptionPayment-api-design.html): Business API Design Specification - `Callback Subscriptionpayment` - [getPaymentCustomerByUserId API](/document/docs/subscription-service/business-api/getPaymentCustomerByUserId-api-design.html): Business API Design Specification - `Get Paymentcustomerbyuserid` - [listPaymentCustomers API](/document/docs/subscription-service/business-api/listPaymentCustomers-api-design.html): Business API Design Specification - `List Paymentcustomers` - [listPaymentCustomerMethods API](/document/docs/subscription-service/business-api/listPaymentCustomerMethods-api-design.html): Business API Design Specification - `List Paymentcustomermethods` - [Service Library](/document/docs/subscription-service/service-library.html): Service Library - `subscription` ### AgentHub Service - [Service Design](/document/docs/agentHub-service/service-design.html): Service Design Specification - [REST API Guide](/document/docs/agentHub-service/rest-api-guide.html): REST API GUIDE - [Event Guide](/document/docs/agentHub-service/event-guide.html): . #### Data Objects - [sys_agentOverride Design](/document/docs/agentHub-service/sys_agentOverride-design.html): Documentation - [sys_agentExecution Design](/document/docs/agentHub-service/sys_agentExecution-design.html): Documentation - [sys_toolCatalog Design](/document/docs/agentHub-service/sys_toolCatalog-design.html): Documentation #### Business APIs - [getAgentOverride API](/document/docs/agentHub-service/business-api/getAgentOverride-api-design.html): Business API Design Specification - `Get Agentoverride` - [listAgentOverrides API](/document/docs/agentHub-service/business-api/listAgentOverrides-api-design.html): Business API Design Specification - `List Agentoverrides` - [updateAgentOverride API](/document/docs/agentHub-service/business-api/updateAgentOverride-api-design.html): Business API Design Specification - `Update Agentoverride` - [createAgentOverride API](/document/docs/agentHub-service/business-api/createAgentOverride-api-design.html): Business API Design Specification - `Create Agentoverride` - [deleteAgentOverride API](/document/docs/agentHub-service/business-api/deleteAgentOverride-api-design.html): Business API Design Specification - `Delete Agentoverride` - [listToolCatalog API](/document/docs/agentHub-service/business-api/listToolCatalog-api-design.html): Business API Design Specification - `List Toolcatalog` - [getToolCatalogEntry API](/document/docs/agentHub-service/business-api/getToolCatalogEntry-api-design.html): Business API Design Specification - `Get Toolcatalogentry` - [listAgentExecutions API](/document/docs/agentHub-service/business-api/listAgentExecutions-api-design.html): Business API Design Specification - `List Agentexecutions` - [getAgentExecution API](/document/docs/agentHub-service/business-api/getAgentExecution-api-design.html): Business API Design Specification - `Get Agentexecution` ### Bff Service - [Service Design](/document/docs/bff-service/service-design.html): --- - [REST API Guide](/document/docs/bff-service/rest-api-guide.html): Documentation - [Event Guide](/document/docs/bff-service/event-guide.html): Documentation ### Notification Service - [Service Design](/document/docs/notification-service/service-design.html): Provider-specific errors include stack traces - [REST API Guide](/document/docs/notification-service/rest-api-guide.html): Documentation - [Event Guide](/document/docs/notification-service/event-guide.html): Documentation ### LLM Documents - [Documentation Index](/document/docs/llm/llms.html): Documentation - [Complete Documentation](/document/docs/llm/llms-full.html): Documentation - [REST API Reference](/document/docs/llm/llms-restapi.html): Documentation - [Frontend Prompts](/document/docs/llm/llms-prompts.html): Documentation ## API Endpoints Summary ### aifitapp-auth-service Service - `POST /auth-api/getUser` - getUser - `POST /auth-api/updateUser` - updateUser - `POST /auth-api/updateProfile` - updateProfile - `POST /auth-api/createUser` - createUser - `POST /auth-api/deleteUser` - deleteUser - `POST /auth-api/archiveProfile` - archiveProfile - `POST /auth-api/listUsers` - listUsers - `POST /auth-api/searchUsers` - searchUsers - `POST /auth-api/updateUserRole` - updateUserRole - `POST /auth-api/updateUserPassword` - updateUserPassword - `POST /auth-api/updateUserPasswordByAdmin` - updateUserPasswordByAdmin - `POST /auth-api/getBriefUser` - getBriefUser - `POST /auth-api/streamTest` - streamTest - `POST /auth-api/registerUser` - registerUser - `POST /auth-api/getUserAvatarsFile` - getUserAvatarsFile - `POST /auth-api/listUserAvatarsFiles` - listUserAvatarsFiles - `POST /auth-api/deleteUserAvatarsFile` - deleteUserAvatarsFile - `POST /auth-api/_fetchListUserAvatarsFile` - _fetchListUserAvatarsFile ### aifitapp-aicoach-service Service - `POST /aiCoach-api/createChatMessage` - createChatMessage - `POST /aiCoach-api/createCoachConversation` - createCoachConversation - `POST /aiCoach-api/createQuotaConfig` - createQuotaConfig - `POST /aiCoach-api/createWeightLog` - createWeightLog - `POST /aiCoach-api/getChatMessage` - getChatMessage - `POST /aiCoach-api/getCoachConversation` - getCoachConversation - `POST /aiCoach-api/getMealPlan` - getMealPlan - `POST /aiCoach-api/getModerationRecord` - getModerationRecord - `POST /aiCoach-api/getMyQuota` - getMyQuota - `POST /aiCoach-api/getPlanMeal` - getPlanMeal - `POST /aiCoach-api/getProgramExercise` - getProgramExercise - `POST /aiCoach-api/getQuotaConfig` - getQuotaConfig - `POST /aiCoach-api/getTrainingProgram` - getTrainingProgram - `POST /aiCoach-api/getUserQuota` - getUserQuota - `POST /aiCoach-api/getWeightLog` - getWeightLog - `POST /aiCoach-api/listChatMessages` - listChatMessages - `POST /aiCoach-api/listCoachConversations` - listCoachConversations - `POST /aiCoach-api/listMealPlans` - listMealPlans - `POST /aiCoach-api/listModerationRecords` - listModerationRecords - `POST /aiCoach-api/listPlanMeals` - listPlanMeals - `POST /aiCoach-api/listProgramExercises` - listProgramExercises - `POST /aiCoach-api/listQuotaConfigs` - listQuotaConfigs - `POST /aiCoach-api/listTrainingPrograms` - listTrainingPrograms - `POST /aiCoach-api/listUserQuotas` - listUserQuotas - `POST /aiCoach-api/listWeightLogs` - listWeightLogs - `POST /aiCoach-api/updateQuotaConfig` - updateQuotaConfig - `POST /aiCoach-api/deleteModerationRecord` - deleteModerationRecord - `POST /aiCoach-api/deletemealplan` - deletemealplan - `POST /aiCoach-api/deletetrainingprogram` - deletetrainingprogram - `POST /aiCoach-api/updateModerationRecord` - updateModerationRecord - `POST /aiCoach-api/listmymoderationrecords` - listmymoderationrecords - `POST /aiCoach-api/listBanAppeals` - listBanAppeals - `POST /aiCoach-api/createBanAppeal` - createBanAppeal - `POST /aiCoach-api/updateBanAppeal` - updateBanAppeal - `POST /aiCoach-api/createAdditionalQuota` - createAdditionalQuota - `POST /aiCoach-api/getMyAdditionalQuota` - getMyAdditionalQuota - `POST /aiCoach-api/getAdditionalQuotaPayment` - getAdditionalQuotaPayment - `POST /aiCoach-api/listAdditionalQuotaPayments` - listAdditionalQuotaPayments - `POST /aiCoach-api/createAdditionalQuotaPayment` - createAdditionalQuotaPayment - `POST /aiCoach-api/updateAdditionalQuotaPayment` - updateAdditionalQuotaPayment - `POST /aiCoach-api/deleteAdditionalQuotaPayment` - deleteAdditionalQuotaPayment - `POST /aiCoach-api/getAdditionalQuotaPaymentByOrderId` - getAdditionalQuotaPaymentByOrderId - `POST /aiCoach-api/getAdditionalQuotaPaymentByPaymentId` - getAdditionalQuotaPaymentByPaymentId - `POST /aiCoach-api/startAdditionalQuotaPayment` - startAdditionalQuotaPayment - `POST /aiCoach-api/refreshAdditionalQuotaPayment` - refreshAdditionalQuotaPayment - `POST /aiCoach-api/callbackAdditionalQuotaPayment` - callbackAdditionalQuotaPayment - `POST /aiCoach-api/getPaymentCustomerByUserId` - getPaymentCustomerByUserId - `POST /aiCoach-api/listPaymentCustomers` - listPaymentCustomers - `POST /aiCoach-api/listPaymentCustomerMethods` - listPaymentCustomerMethods - `POST /aiCoach-api/_fetchListChatMessage` - _fetchListChatMessage - `POST /aiCoach-api/_fetchListCoachConversation` - _fetchListCoachConversation - `POST /aiCoach-api/_fetchListMealPlan` - _fetchListMealPlan - `POST /aiCoach-api/_fetchListModerationRecord` - _fetchListModerationRecord - `POST /aiCoach-api/_fetchListPlanMeal` - _fetchListPlanMeal - `POST /aiCoach-api/_fetchListProgramExercise` - _fetchListProgramExercise - `POST /aiCoach-api/_fetchListQuotaConfig` - _fetchListQuotaConfig - `POST /aiCoach-api/_fetchListTrainingProgram` - _fetchListTrainingProgram - `POST /aiCoach-api/_fetchListUserQuota` - _fetchListUserQuota - `POST /aiCoach-api/_fetchListWeightLog` - _fetchListWeightLog - `POST /aiCoach-api/_fetchListBanAppeals` - _fetchListBanAppeals - `POST /aiCoach-api/_fetchListAdditionalQuota` - _fetchListAdditionalQuota - `POST /aiCoach-api/_fetchListSys_additionalQuotaPayment` - _fetchListSys_additionalQuotaPayment - `POST /aiCoach-api/_fetchListSys_paymentCustomer` - _fetchListSys_paymentCustomer - `POST /aiCoach-api/_fetchListSys_paymentMethod` - _fetchListSys_paymentMethod ### aifitapp-subscription-service Service - `POST /subscription-api/cancelSubscription` - cancelSubscription - `POST /subscription-api/checkSubscriptionStatus` - checkSubscriptionStatus - `POST /subscription-api/createPricingConfig` - createPricingConfig - `POST /subscription-api/deletePricingConfig` - deletePricingConfig - `POST /subscription-api/getMySubscription` - getMySubscription - `POST /subscription-api/getPricingConfig` - getPricingConfig - `POST /subscription-api/getSubscription` - getSubscription - `POST /subscription-api/listPricingConfigs` - listPricingConfigs - `POST /subscription-api/listSubscriptions` - listSubscriptions - `POST /subscription-api/updatePricingConfig` - updatePricingConfig - `POST /subscription-api/createSubscription` - createSubscription - `POST /subscription-api/test` - test - `POST /subscription-api/getSubscriptionPayment` - getSubscriptionPayment - `POST /subscription-api/listSubscriptionPayments` - listSubscriptionPayments - `POST /subscription-api/createSubscriptionPayment` - createSubscriptionPayment - `POST /subscription-api/updateSubscriptionPayment` - updateSubscriptionPayment - `POST /subscription-api/deleteSubscriptionPayment` - deleteSubscriptionPayment - `POST /subscription-api/getSubscriptionPaymentByOrderId` - getSubscriptionPaymentByOrderId - `POST /subscription-api/getSubscriptionPaymentByPaymentId` - getSubscriptionPaymentByPaymentId - `POST /subscription-api/startSubscriptionPayment` - startSubscriptionPayment - `POST /subscription-api/refreshSubscriptionPayment` - refreshSubscriptionPayment - `POST /subscription-api/callbackSubscriptionPayment` - callbackSubscriptionPayment - `POST /subscription-api/getPaymentCustomerByUserId` - getPaymentCustomerByUserId - `POST /subscription-api/listPaymentCustomers` - listPaymentCustomers - `POST /subscription-api/listPaymentCustomerMethods` - listPaymentCustomerMethods - `POST /subscription-api/_fetchListPricingConfig` - _fetchListPricingConfig - `POST /subscription-api/_fetchListSubscription` - _fetchListSubscription - `POST /subscription-api/_fetchListSys_subscriptionPayment` - _fetchListSys_subscriptionPayment - `POST /subscription-api/_fetchListSys_paymentCustomer` - _fetchListSys_paymentCustomer - `POST /subscription-api/_fetchListSys_paymentMethod` - _fetchListSys_paymentMethod ### aifitapp-agenthub-service Service - `POST /agentHub-api/getAgentOverride` - getAgentOverride - `POST /agentHub-api/listAgentOverrides` - listAgentOverrides - `POST /agentHub-api/updateAgentOverride` - updateAgentOverride - `POST /agentHub-api/createAgentOverride` - createAgentOverride - `POST /agentHub-api/deleteAgentOverride` - deleteAgentOverride - `POST /agentHub-api/listToolCatalog` - listToolCatalog - `POST /agentHub-api/getToolCatalogEntry` - getToolCatalogEntry - `POST /agentHub-api/listAgentExecutions` - listAgentExecutions - `POST /agentHub-api/getAgentExecution` - getAgentExecution - `POST /agentHub-api/_fetchListSys_agentOverride` - _fetchListSys_agentOverride - `POST /agentHub-api/_fetchListSys_agentExecution` - _fetchListSys_agentExecution - `POST /agentHub-api/_fetchListSys_toolCatalog` - _fetchListSys_toolCatalog ## Getting Started 1. **Authentication**: Start with the Auth Service to register and authenticate users 2. **Data Queries**: Use the BFF Service for optimized read-only data queries 3. **Business Operations**: Use individual business services for create/update/delete operations ## Additional Resources - Full documentation: /document/docs/intro.html - Search: /document/docs/search.html --- Generated by Mindbricks Genesis Engine