# Choosing the Right EGYM Equipment Vendor API EGYM offers two integration models for connecting your equipment or services to the EGYM ecosystem. This guide helps you understand the differences and choose the right approach. ## πŸ“Ÿ Equipment Vendor API (for standalone clients) **Best for:** - Fitness equipment or measurement devices **without their own backend infrastructure**, or - Devices that **directly connect to EGYM Cloud** from the gym floor. **Key Characteristics:** - **Direct device-to-EGYM communication** via HTTPS. - Authentication: **BasicAuth** (`client_id` + `client_secret`). - Credentials issued **per gym location**. - User (Gym Goer) Authentication handled **on the device** (e.g., via EGYM ID, RFID, or NFC). - Ideal for **cardio, strength and measurement devices that generate results in gym**. - Supports direct **real-time data exchange**. **Typical Flow:** ``` [Device] β†’ Authenticate (OAuth) β†’ Get User Details β†’ Get Training Plan / Submit Workout or Measurements ``` ## 🌐 Equipment Vendor API (for server-to-server cases) **Best for:** - Equipment vendors who already have their **own cloud/backend** collecting measurement data. - Use cases where devices do **not** directly communicate (in all cases directly) with EGYM Cloud. **Key Characteristics:** - Your backend handles **all or most communication with EGYM Cloud**. - Authentication: **API-Key**. - Credentials issued **per gym location**. - Devices talk **to your backend**, which then syncs with EGYM (e.g. to calculate the overall results) - Suitable for **batch data sync** or large-scale centralized integrations. **Typical Flow:** ``` [Device] β†’ [Vendor Backend] β†’ Authenticate (API-Key) β†’ Push/Fetch Data to/from EGYM ``` ## πŸ” Quick Comparison | Feature / Aspect | Standalone Devices API | Server-to-Server API | | --- | --- | --- | | **Connection** | Device β†’ EGYM directly | Vendor Backend β†’ EGYM | | **Authentication** | BasicAuth (client_id + client_secret) | API-Key | | **Credentials Scope** | Per gym location | Per gym location or gym chain | | **Auth Location** | On device | On device and/or vendor backend | | **Login Methods** | EGYM ID credentials, RFID, NFC | RFID, NFC, User Id | | **Real-time Interaction** | βœ… Yes | ⚠️ Optional (often batched) | | **Best For** | Gym-floor connected machines | Vendors with central cloud and cloud operations | ## πŸ›  When You’re Ready to Integrate Once you’ve identified which integration model suits your setup, jump into the dedicated documentation for technical details: - **Equipment Vendor API – Standalone Devices** Includes: - Supported authentication flows (EGYM ID, RFID, NFC) - Terms & Conditions handling - Full API endpoint list and request/response examples - Error handling best practices - **Equipment Vendor API – Server-to-Server** Includes: - API-Key authentication - User identification methods (RFID, NFC, special cases) - Measurement submission formats - Error handling best practices ## πŸ“© Need Help? For guidance on which model is right for you or to obtain credentials, contact [integrations@egym.com](mailto:integrations@egym.com).