MyGymDesk Website API (API access)
MyGymDeskβs Website API has twelve REST endpoints behind one per-gym key. Lead capture into the CRM is included on the Pro plan (the Leads API); the full API β live pricing, class/service catalogs and timetables, bookings, shop checkout and membership purchase with server-verified payment β comes with the Enterprise plan or the Full Website API add-on for Pro gyms. Docs at mygymdesk.in/developers.
What you can do with it
Put a working enquiry form on your own website
POST a visitorβs name and phone from your siteβs contact or βbook a trialβ form to the lead-capture endpoint, and the enquiry appears instantly in Leads β Enquiries, de-duplicated by phone number.
Show always-current membership prices and a class timetable
Fetch live pricing and the weekly class schedule from the read endpoints so your marketing site reflects whatβs configured in MyGymDesk instead of hand-maintained HTML. Cache server-side to stay within the rate limit.
Take a paid class booking from your site, end-to-end
Create a Razorpay order via the booking endpoint, run Checkout in the browser, then record the booking only after MyGymDesk verifies the capture on the gymβs own gateway β the amount is resolved server-side, so a leaked key canβt mint free bookings.
Sell bookable services online
List active, published services with member and non-member pricing, and take payment for physio, massage or court-hire bookings with the same server-side verification as classes.
Route multi-branch leads and schedules
Filter the display endpoints by location to render one branchβs timetable, and let captured leads file against the branch configured on the key.
How to set it up
- 1As the owner (or a staff member with the βManage Integrationsβ permission), open Settings β Growth & Apps β Integrations.
- 2Select the βWebsite Integrationβ sub-tab. A key is auto-created the first time you open it β it starts inactive.
- 3Flip the toggle in the tab header to ON. Until itβs on, every API request returns a 403 and the configuration fields stay hidden.
- 4Copy the revealed key immediately from the βYour New API Keyβ panel β itβs shown exactly once (stored only as a hash). If lost, use βRegenerate Keyβ, which invalidates the old key instantly.
- 5Set βAssign Leads to Locationβ, the hourly rate limit (default 30 requests/hour, shared across all endpoints), and βAllowed Originsβ (full origins with scheme, e.g. https://www.yourgym.com), then save.
- 6Use the in-tab code snippets or open the full endpoint reference at mygymdesk.in/developers, and send the key from your server in the x-mgd-api-key header.
Frequently asked questions
Related pages
Ready to use API Access with MyGymDesk?
Free 7-day trial. No credit card required.