ResourcesDevelopers

FitVantage API

Connect a gym’s own systems to FitVantage: website forms, a door reader, a spreadsheet, Zapier or Make. One REST API and webhooks, for FitVantage for Gyms.

Version
v1
Base address
https://app.fitvantage.io/api/v1/org
Format
JSON over HTTPS

Overview

Each API key belongs to one gym and sees only that gym’s data. You never send a gym id: the key decides which gym you’re talking to. Every request is a member of staff’s work done by a system, so keys are created, limited and revoked by the gym’s owner in the portal.

Quickstart

  1. In the gym portal, open Integrations → API keys and create a key. Choose only the permissions it needs.
  2. Check the key works: it answers with your gym, its locations and the key’s permissions.
curl https://app.fitvantage.io/api/v1/org/ \
  -H "Authorization: Bearer YOUR_API_KEY"
  1. List your members, 50 at a time.
curl "https://app.fitvantage.io/api/v1/org/members?per_page=50" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": 1842,
      "member_number": "MAR-0010",
      "first_name": "Sofia",
      "last_name": "Petrova",
      "email": "sofia@example.com",
      "mobile_number": "+971501234567",
      "gender": "female",
      "date_of_birth": "1994-03-12",
      "home_location_id": 1,
      "joined_at": "2026-04-28T09:12:00+04:00",
      "has_app": true,
      "active": true,
      "updated_at": "2026-11-03T07:10:22+04:00"
    }
  ],
  "meta": { "page": 1, "per_page": 50, "has_more": true }
}

Keys and permissions

Send the key as a bearer token on every request. Give each system its own key with only the permissions it needs, so you can revoke one without touching the others.

members:read
members:write
Read members, or add them
memberships:read · memberships:writeRead plans, memberships and payments, or sell memberships
payments:writeRecord a payment against a membership
checkins:read · checkins:writeRead check-ins, or check members in (a door reader)
classes:readRead the timetable and bookings
bookings:writeBook or cancel class places
leads:writeAdd leads, for example from your website’s forms
*Everything. Use it only for your own back office

Errors

Errors use the usual HTTP status codes, with a code you can test for and a message you can show.

{
  "error": { "code": "member_not_found",
             "message": "No member of this gym has that id." }
}

Examples: member_not_found (404), email_taken (409), unknown_location (422), bad_date (422).

Repeating a request

If a request times out, you can send it again. Adding a member with the same email, a payment with the same reference, a membership with the same external_ref, the same class place or the same lead within a day returns what is already there, with meta.created set to false.

For any other POST, send an Idempotency-Key header with a value unique to that request. The same key within 24 hours gets the first answer back, marked Idempotent-Replayed: true, and nothing is done twice. Only a successful answer is kept, so a request that failed can be sent again with the same key. The same key on a different request returns idempotency_key_reused (422).

curl -X POST https://app.fitvantage.io/api/v1/org/memberships \
  -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-58213" \
  -d '{"member_id": 1842, "plan_id": 7}'

Lists and paging

Lists take page and per_page (up to 200) and return {data, meta}, where meta.has_more tells you whether to ask for the next page. To sync, ask only for what changed: members take updated_since, other lists take since, as a date and time such as 2026-10-12T08:00:00Z.

Members

List: filter by email, member_number, mobile_number or location_id. One member: adds whether they may come in right now, and their live membership.

Add: first_name is required; last_name, email, mobile_number, gender, date_of_birth, member_number and location_id are optional. Set send_app_invite to email them the app.

Adding is safe to repeat: the same email again returns the member who is already there, with meta.created set to false. An email that already has its own FitVantage account returns email_taken: a key never moves someone’s account into a gym, so ask them to join from the app with your gym code.

curl -X POST https://app.fitvantage.io/api/v1/org/members \
  -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"first_name": "Layla", "email": "layla@example.com", "send_app_invite": true}'

All endpoints

EndpointWhat it doesPermission
GET /Your gym, its locations, and this keyany key
GET /membersMembers, newest changes lastmembers:read
GET /members/{id}One member, with door state and live membershipmembers:read
POST /membersAdd a membermembers:write
GET /plansPlans and pricesmemberships:read
GET /membershipsMembershipsmemberships:read
POST /membershipsSell a membershipmemberships:write
GET /paymentsPaymentsmemberships:read
POST /memberships/{id}/paymentsRecord a paymentpayments:write
GET /check-insCheck-inscheckins:read
POST /check-insCheck a member incheckins:write
GET /classesClasses on the timetableclasses:read
GET /bookingsClass bookingsclasses:read
POST /classes/{id}/bookingsBook a placebookings:write
POST /bookings/{id}/cancelCancel a bookingbookings:write
POST /leadsAdd a leadleads:write

Webhooks

Add an HTTPS address under Integrations → Webhooks and pick the events you want. FitVantage sends each one as a POST with this body:

{ "id": "0d7c9f1e-6c1b-4f0e-9a51-2b7f4c3d8e10", "event": "membership.sold", "created_at": "2026-11-03T11:30:04+04:00", "organisation_id": 12, "data": { … } }
EventWhen
member.createdA member was added
member.leftA member left the gym
membership.soldA membership was sold
membership.renewedA membership was renewed
membership.pausedA membership was paused
membership.resumedA membership was resumed
membership.endedA membership ended
payment.recordedA payment was recorded
checkin.createdA member checked in
booking.createdA class place was booked
booking.cancelledA booking was cancelled
lead.createdA lead came in

Headers: X-FitVantage-Event, X-FitVantage-Delivery and X-FitVantage-Signature: sha256=…, an HMAC-SHA256 of the raw body with your endpoint’s secret. Check it before you trust the body:

// Node
const crypto = require('crypto');
const expected = 'sha256=' + crypto.createHmac('sha256', SECRET).update(rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-fitvantage-signature']));
// PHP
$expected = 'sha256=' . hash_hmac('sha256', $rawBody, $secret);
$ok = hash_equals($expected, $_SERVER['HTTP_X_FITVANTAGE_SIGNATURE'] ?? '');
# Python
import hashlib, hmac
expected = 'sha256=' + hmac.new(SECRET.encode(), raw_body, hashlib.sha256).hexdigest()
ok = hmac.compare_digest(expected, request.headers.get('X-FitVantage-Signature', ''))

Delivery: answer with any 2xx status within a few seconds; a redirect counts as a failure. A delivery that fails is tried again after 5 minutes, 30 minutes, 2 hours, 6 hours and 16 hours: six tries over about a day. Every try carries the same id, also sent as X-FitVantage-Delivery, so ignore one you have already handled. After the last try it stays listed under Integrations → Webhooks for 30 days, where the gym can send it again.

An endpoint that fails 15 times in a row is switched off until the gym switches it back on. To catch up on anything missed, ask the API for what changed with updated_since or since.

Website widgets

Five widgets show live gym information on any website: timetable, plans, trial, enquire and join. Paste one line where it should appear:

<script src="https://app.fitvantage.io/embed/gym/YOUR-GYM.js" data-show="timetable" async></script>

Or use an iframe: https://app.fitvantage.io/g/YOUR-GYM/embed/timetable. Your public gym page has to be switched on first.

Calendar feeds

Each location’s timetable, and each staff member’s classes and sessions, is a live calendar feed at /cal/{token}.ics, covering the week before and the eight weeks ahead. Add it to Google, Apple or Outlook calendar by its address.

Limits

120 requests a minute for each key, and 600 a minute from one IP address. HTTPS only.