Glofox MCP server for AI agents

Let Claude, ChatGPT or your own agent read and act on Glofox: 25 typed functions through one MCP server. No Glofox API key needed.

Functions
25
Sign-in
For account actions
Works with
MCP, HTTP, Node, Python

Connect

Just Glofox

An MCP server for Glofox alone, with one tool per function. Paste it into Claude, ChatGPT, Cursor or any MCP client as a remote server.

https://api.bowmark.ai/mcp/site/glofox
Every site

One MCP server for Glofox and every other site Bowmark covers. Your agent looks up what it needs and calls it.

https://api.bowmark.ai/mcp
Set it up in your client

Both need a Bowmark API key. The quickstart gets you one and a first result in a few minutes. Functions that need a login use the person's own account: how sign-in works.

Functions

Open a function to see its arguments, what it returns and how to call it.

Read 18
  • findStudioFinds a Glofox studio (a 'branch') from what a caller has: its Glofox namespace ("barazayoga"), its 24-hex branch id, an…

    Arguments

    NameTypeRequired
    studiostringYes

    Returns glofoxStudio

    interface glofoxStudio {
      /** 24-hex branch id, pass it back as `studio`. */
      branchId: string;
      namespace: string;
      name: string;
      city: string | null;
      country: string | null;
      timezone: string | null;
      currency: string | null;
      website: string | null;
      portalUrl: string;
      /** Where the PERSON picks a class and books, signed in to the studio's portal. Bowmark does not book it. */
      checkout: glofoxCheckout | null;
    }
    
    interface glofoxCheckout {
      status: "ready_to_checkout" | "needs_login" | "unavailable";
      /** Always https, on the studio's own site. */
      url: string;
      /** ready_to_checkout only: carries_items opens this very slot, product_page opens the studio's schedule. */
      urlKind?: "carries_items" | "signed_in_cart" | "product_page";
      /** unavailable only: out_of_stock (class full, no waitlist) or not_available_for_dates (cancelled). */
      reason?: string;
      detail?: string;
      account: { site: string; hint: string; signedInAs?: string; signInUrl?: string };
      summary: {
        items: { title: string; variant: string | null; quantity: number; unitPrice: string | null; lineTotal: string | null; url?: string; id?: string }[];
        total: string | null;
        currency: string;
        /** ISO start/end of the class or slot, with the studio's UTC offset when the site gives one. */
        dates?: { start: string; end?: string };
      } | null;
      warnings: string[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/findStudio

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.findStudio({ studio: "barazayoga" });
  • getClassReturns one scheduled class by id, with its description, trainers, room, capacity, booked and waitlist counts, and its booking window.

    Arguments

    NameTypeRequired
    studiostringYes
    classIdstringYes

    Returns glofoxClass

    interface glofoxClass {
      id: string;
      name: string;
      description: string | null;
      /** ISO instant. */
      start: string;
      durationMinutes: number | null;
      level: string | null;
      classTypeId: string | null;
      trainerIds: string[];
      roomId: string | null;
      capacity: number | null;
      booked: number | null;
      waiting: number | null;
      /** Glofox's own state, e.g. AVAILABLE. */
      status: string | null;
      online: boolean;
      imageUrl: string | null;
      /** ISO instant; null when the window has no separate open time. */
      bookingOpensAt: string | null;
      /** ISO instant the class stops taking bookings. */
      bookingClosesAt: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/getClass

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.getClass({
      studio: "barazayoga",
      classId: "6a6fffa9200b6f8f680107b9"
    });
  • getMyProfileReturns the signed-in member's own profile at that studio: name, email, phone, birth date, photo and membership summary.

    Arguments

    NameTypeRequired
    studiostringYes

    Returns glofoxMyProfile

    interface glofoxMyProfile {
      studio: string;
      id: string | null;
      firstName: string | null;
      lastName: string | null;
      email: string | null;
      phone: string | null;
      birthDate: string | null;
      imageUrl: string | null;
      membership: { id: string | null; name: string | null; type: string | null } | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/getMyProfile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.getMyProfile({ studio: "barazayoga" });
  • getPriceReturns what one class costs a drop-in before booking.

    Arguments

    NameTypeRequired
    studiostringYes
    classIdstring
    The class id from listClasses.
    Yes

    Returns glofoxPrice

    interface glofoxPrice {
      studio: string;
      classId: string;
      /** False when only certain memberships may book it; no drop-in price is quoted then. */
      openToDropIn: boolean;
      price: number | null;
      currency: string | null;
      credits: number | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/getPrice

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.getPrice({ studio: "<studio>", classId: "<classId>" });
  • getStudioReturns one studio's profile: name, address and coordinates, time zone, currency, phone, website, opening hours, and its booking and cancellation…

    Arguments

    NameTypeRequired
    studiostringYes

    Returns glofoxStudioProfile

    interface glofoxStudio {
      /** 24-hex branch id, pass it back as `studio`. */
      branchId: string;
      namespace: string;
      name: string;
      city: string | null;
      country: string | null;
      timezone: string | null;
      currency: string | null;
      website: string | null;
      portalUrl: string;
      /** Where the PERSON picks a class and books, signed in to the studio's portal. Bowmark does not book it. */
      checkout: glofoxCheckout | null;
    }
    
    interface glofoxCheckout {
      status: "ready_to_checkout" | "needs_login" | "unavailable";
      /** Always https, on the studio's own site. */
      url: string;
      /** ready_to_checkout only: carries_items opens this very slot, product_page opens the studio's schedule. */
      urlKind?: "carries_items" | "signed_in_cart" | "product_page";
      /** unavailable only: out_of_stock (class full, no waitlist) or not_available_for_dates (cancelled). */
      reason?: string;
      detail?: string;
      account: { site: string; hint: string; signedInAs?: string; signInUrl?: string };
      summary: {
        items: { title: string; variant: string | null; quantity: number; unitPrice: string | null; lineTotal: string | null; url?: string; id?: string }[];
        total: string | null;
        currency: string;
        /** ISO start/end of the class or slot, with the studio's UTC offset when the site gives one. */
        dates?: { start: string; end?: string };
      } | null;
      warnings: string[];
    }
    
    interface glofoxStudioProfile extends glofoxStudio {
      email: string | null;
      phone: string | null;
      address: { street: string | null; postalCode: string | null; state: string | null } | null;
      latitude: number | null;
      longitude: number | null;
      about: string | null;
      logoUrl: string | null;
      openingTimes: { day: string; open: boolean; start: string | null; end: string | null }[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/getStudio

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.getStudio({ studio: "6155e490fdd54b3a7e0f51af" });
  • listAppointmentTypesLists the one-to-one appointments a studio sells (personal training, consultations) with length, price and which trainers give them.

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100.
    No

    Returns glofoxAppointmentTypePage

    interface glofoxAppointmentType {
      id: string;
      name: string;
      description: string | null;
      active: boolean;
    
      pricing: string | null;
      slotLengthMinutes: number | null;
      trainerIds: string[];
      categoryIds: string[];
    }
    
    interface glofoxAppointmentTypePage {
      studio: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      appointmentTypes: glofoxAppointmentType[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listAppointmentTypes

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listAppointmentTypes({ studio: "glofox" });
  • listClassesLists a studio's class schedule for a date range, optionally narrowed to a class type, trainer or room: each class's id, name, start time, duration…

    Arguments

    NameTypeRequired
    studiostringYes
    fromstring
    "YYYY-MM-DD" in the studio's own time zone; default today.
    No
    tostring
    "YYYY-MM-DD", inclusive; default from + 6 days; at most 31 days.
    No
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100, default 50.
    No

    Returns glofoxClassPage

    
    interface glofoxCheckout {
      status: "ready_to_checkout" | "needs_login" | "unavailable";
      /** Always https, on the studio's own site. */
      url: string;
      /** ready_to_checkout only: carries_items opens this very slot, product_page opens the studio's schedule. */
      urlKind?: "carries_items" | "signed_in_cart" | "product_page";
      /** unavailable only: out_of_stock (class full, no waitlist) or not_available_for_dates (cancelled). */
      reason?: string;
      detail?: string;
      account: { site: string; hint: string; signedInAs?: string; signInUrl?: string };
      summary: {
        items: { title: string; variant: string | null; quantity: number; unitPrice: string | null; lineTotal: string | null; url?: string; id?: string }[];
        total: string | null;
        currency: string;
        /** ISO start/end of the class or slot, with the studio's UTC offset when the site gives one. */
        dates?: { start: string; end?: string };
      } | null;
      warnings: string[];
    }
    
    interface glofoxClass {
      id: string;
      name: string;
      description: string | null;
      /** ISO instant. */
      start: string;
      durationMinutes: number | null;
      level: string | null;
      classTypeId: string | null;
      trainerIds: string[];
      roomId: string | null;
      capacity: number | null;
      booked: number | null;
      waiting: number | null;
      /** Glofox's own state, e.g. AVAILABLE. */
      status: string | null;
      online: boolean;
      imageUrl: string | null;
      /** ISO instant; null when the window has no separate open time. */
      bookingOpensAt: string | null;
      /** ISO instant the class stops taking bookings. */
      bookingClosesAt: string | null;
    }
    
    interface glofoxClassPage {
      studio: string;
      from: string;
      to: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      classes: glofoxClass[];
      /** Where the PERSON picks one of these classes and books, signed in to the studio's portal. Bowmark does not book it. */
      checkout: glofoxCheckout | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listClasses

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listClasses({ studio: "barazayoga" });
  • listClassTypesLists a studio's class types ('programs') with their description and pricing (pay-as-you-go and per-membership).

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100.
    No

    Returns glofoxClassTypePage

    interface glofoxClassTypePrice {
      name: string | null;
      price: number | null;
      /** "payg" or "member" (spends a membership/credit). */
      billingType: string | null;
      membershipId: string | null;
    }
    
    interface glofoxClassType {
      id: string;
      name: string;
      description: string | null;
      isFree: boolean;
      pricing: glofoxClassTypePrice[];
      imageUrl: string | null;
    }
    
    interface glofoxClassTypePage {
      studio: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      classTypes: glofoxClassType[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listClassTypes

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listClassTypes({ studio: "barazayoga" });
  • listCoursesLists a studio's multi-week courses (teacher trainings, beginner series) with their schedule of sessions, trainers, room, size and pricing.

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100.
    No

    Returns glofoxCoursePage

    interface glofoxCourseSession {
      start: string | null;
      end: string | null;
      weekday: string | null;
      size: number | null;
      facilityId: string | null;
    }
    
    interface glofoxCourseSchedule {
      /** The schedule id a course booking is made against. */
      id: string;
      label: string | null;
      startDate: string | null;
      endDate: string | null;
      size: number | null;
      booked: number | null;
      status: string | null;
      sessions: glofoxCourseSession[];
    }
    
    interface glofoxCourse {
      id: string;
      name: string;
      description: string | null;
      facilityId: string | null;
      facilityName: string | null;
      trainers: { id: string; name: string }[];
      pricing: { type: string; name: string | null; price: number | null }[];
      schedules: glofoxCourseSchedule[];
    }
    
    interface glofoxCoursePage {
      studio: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      courses: glofoxCourse[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listCourses

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listCourses({ studio: "barazayoga" });
  • listFacilitiesLists a studio's bookable rooms and spaces (courts, studios, saunas) with description, capacity and photo.

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100.
    No

    Returns glofoxFacilityPage

    interface glofoxFacility {
      id: string;
      name: string;
      description: string | null;
      active: boolean;
      /** Visible and bookable on the studio's own schedule. */
      listVisible: boolean;
      online: boolean;
      imageUrl: string | null;
    }
    
    interface glofoxFacilityPage {
      studio: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      facilities: glofoxFacility[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listFacilities

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listFacilities({ studio: "barazayoga" });
  • listFacilitySlotsLists the open booking slots for a studio's rooms and spaces over a date range, optionally for one facility.

    Arguments

    NameTypeRequired
    studiostringYes
    fromstringNo
    tostringNo
    facilityIdstringNo
    pagenumberNo
    limitnumberNo

    Returns glofoxFacilitySlotPage

    interface glofoxFacilitySlot {
      id: string;
      start: string;
      durationMinutes: number | null;
      facilityId: string | null;
      facilityName: string | null;
      capacity: number | null;
      booked: number | null;
      waiting: number | null;
      status: string | null;
      bookingOpensAt: string | null;
      bookingClosesAt: string | null;
    }
    
    interface glofoxFacilitySlotPage {
      studio: string;
      from: string;
      to: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      slots: glofoxFacilitySlot[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listFacilitySlots

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listFacilitySlots({ studio: "barazayoga" });
  • listMembershipsLists the memberships, class packs and trials a studio sells, each with its plans, price, credits, billing period and restrictions.

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100.
    No

    Returns glofoxMembershipPage

    interface glofoxMembershipCredit {
      model: string | null;
      categoryId: string | null;
      numSessions: number | null;
      expiryInterval: string | null;
      expiryIntervalCount: number | null;
    }
    
    interface glofoxMembershipPlan {
      price: number | null;
      billingType: string | null;
      startsOn: string | null;
      isGroupMembership: boolean;
      autoRenewal: boolean;
      credits: glofoxMembershipCredit[];
    }
    
    interface glofoxMembership {
      id: string;
      name: string;
      description: string | null;
      buyJustOnce: boolean;
      plans: glofoxMembershipPlan[];
      imageUrl: string | null;
    }
    
    interface glofoxMembershipPage {
      studio: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      memberships: glofoxMembership[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listMemberships

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listMemberships({ studio: "barazayoga" });
  • listMyBookingsLists the signed-in member's bookings at that studio.

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumber
    1-based page, newest booking first.
    No

    Returns glofoxMyBookingPage

    interface glofoxMyBooking {
      id: string;
      status: string | null;
      /** "event" (a class), "course", "appointment" (trainer slot), "facility"… */
      kind: string | null;
      /** The booked thing's id, a class id from listClasses for kind "event". */
      itemId: string | null;
      name: string | null;
      startsAt: string | null;
      endsAt: string | null;
      guests: number;
      attended: boolean | null;
    }
    
    interface glofoxMyBookingPage {
      studio: string;
      bookings: glofoxMyBooking[];
      page: number;
      hasMore: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listMyBookings

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listMyBookings({ studio: "barazayoga" });
  • listMyCreditsLists the signed-in member's remaining class credits and what each can be spent on.

    Arguments

    NameTypeRequired
    studiostringYes

    Returns glofoxMyCredits

    interface glofoxMyCredit {
      id: string | null;
      sessions: number | null;
      used: number | null;
      remaining: number | null;
      /** "programs" (class types), "appointments", "facilities"… */
      spendsOn: string | null;
      categoryId: string | null;
      itemIds: string[];
      startsAt: string | null;
      expiresAt: string | null;
      active: boolean | null;
    }
    
    interface glofoxMyCredits {
      studio: string;
      credits: glofoxMyCredit[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listMyCredits

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listMyCredits({ studio: "barazayoga" });
  • listMyMembershipsLists the signed-in member's active, paused and stacked memberships, with renewal dates.

    Arguments

    NameTypeRequired
    studiostringYes

    Returns glofoxMyMemberships

    interface glofoxMyMembership {
      /** The member's own membership instance. */
      id: string | null;
      /** The studio membership it copies, an id from listMemberships. */
      membershipId: string | null;
      name: string | null;
      planCode: string | null;
      type: string | null;
      status: string | null;
      startsAt: string | null;
      endsAt: string | null;
    }
    
    interface glofoxMyMemberships {
      studio: string;
      memberships: glofoxMyMembership[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listMyMemberships

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listMyMemberships({ studio: "barazayoga" });
  • listMyTransactionsLists the signed-in member's charges at that studio, newest first, with amount, currency, status and invoice id.

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumberNo

    Returns glofoxTransactionPage

    interface glofoxTransaction {
      id: string;
      amount: number | null;
      currency: string | null;
      status: string | null;
      description: string | null;
      createdAt: string | null;
      invoiceId: string | null;
    }
    
    interface glofoxTransactionPage {
      studio: string;
      transactions: glofoxTransaction[];
      page: number;
      hasMore: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listMyTransactions

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listMyTransactions({ studio: "barazayoga" });
  • listTrainersLists a studio's trainers with id, name, photo and bio.

    Arguments

    NameTypeRequired
    studiostringYes
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100.
    No

    Returns glofoxTrainerPage

    interface glofoxTrainer {
      id: string;
      name: string;
      firstName: string | null;
      lastName: string | null;
      bio: string | null;
      photoUrl: string | null;
    }
    
    interface glofoxTrainerPage {
      studio: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      trainers: glofoxTrainer[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listTrainers

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listTrainers({ studio: "barazayoga" });
  • listTrainerSlotsLists the open appointment slots for a studio's trainers over a date range, optionally for one trainer or appointment type.

    Arguments

    NameTypeRequired
    studiostringYes
    fromstring
    "YYYY-MM-DD" in the studio's own time zone; default today.
    No
    tostring
    "YYYY-MM-DD", inclusive; default from + 6 days; at most 31 days.
    No
    trainerIdstring
    Id from listTrainers.
    No
    appointmentTypeIdstring
    Id from listAppointmentTypes.
    No
    pagenumber
    1-based; read hasMore.
    No
    limitnumber
    1-100, default 50.
    No

    Returns glofoxTrainerSlotPage

    interface glofoxTrainerSlot {
      /** Opaque key the site itself issues; pass it back to book. */
      id: string;
      /** ISO instant. */
      start: string;
      durationMinutes: number | null;
      appointmentTypeId: string | null;
      appointmentTypeName: string | null;
      trainerId: string | null;
      trainerName: string | null;
      capacity: number | null;
      booked: number | null;
      waiting: number | null;
      status: string | null;
      bookingOpensAt: string | null;
      bookingClosesAt: string | null;
    }
    
    interface glofoxTrainerSlotPage {
      studio: string;
      from: string;
      to: string;
      page: number;
      hasMore: boolean;
      totalCount: number | null;
      slots: glofoxTrainerSlot[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/listTrainerSlots

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.listTrainerSlots({ studio: "glofox" });
Act 7
  • bookClassBooks the signed-in member into one class, spending a credit or membership they already hold.

    Arguments

    NameTypeRequired
    studiostringYes
    classIdstring
    The class id from listClasses.
    Yes
    guestsnumber
    Guests booked alongside the member; default 0.
    No

    Returns glofoxBookingResult

    interface glofoxBookingResult {
      studio: string;
      classId: string;
      /** True when the studio confirmed the booking (or the waitlist place). */
      booked: boolean;
      /** The new booking's id, what cancelBooking takes. */
      bookingId: string | null;
      status: string | null;
      waitlisted: boolean;
      /** The class would charge a card; Bowmark stopped before paying and nothing was booked. */
      paymentRequired: boolean;
      message: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/bookClass

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.bookClass({ studio: "<studio>", classId: "<classId>" });
  • bookCourseBooks the signed-in member onto a course from listCourses; stops at the payment step.

    Arguments

    NameTypeRequired
    studiostringYes
    courseIdstring
    A course id from listCourses.
    Yes
    scheduleIdstring
    One of that course's schedules[].id from listCourses.
    Yes
    guestsnumberNo

    Returns glofoxCourseBookingResult

    interface glofoxCourseBookingResult {
      studio: string;
      courseId: string;
      scheduleId: string;
      booked: boolean;
      bookingId: string | null;
      status: string | null;
      waitlisted: boolean;
      /** The course would charge a card; Bowmark stopped before paying and nothing was booked. */
      paymentRequired: boolean;
      message: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/bookCourse

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.bookCourse({
      studio: "<studio>",
      courseId: "<courseId>",
      scheduleId: "<scheduleId>"
    });
  • bookFacilitySlotBooks the signed-in member into one room or space slot from listFacilitySlots; stops at the payment step.

    Arguments

    NameTypeRequired
    studiostringYes
    slotIdstring
    A slot id from listTrainerSlots (bookTrainerSlot) or listFacilitySlots (bookFacilitySlot).
    Yes

    Returns glofoxSlotBookingResult

    interface glofoxSlotBookingResult {
      studio: string;
      slotId: string;
      booked: boolean;
      bookingId: string | null;
      status: string | null;
      waitlisted: boolean;
      /** The slot would charge a card; Bowmark stopped before paying and nothing was booked. */
      paymentRequired: boolean;
      message: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/bookFacilitySlot

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.bookFacilitySlot({ studio: "<studio>", slotId: "<slotId>" });
  • bookTrainerSlotBooks the signed-in member into one trainer appointment slot from listTrainerSlots, spending what they already hold; stops at the payment step.

    Arguments

    NameTypeRequired
    studiostringYes
    slotIdstring
    A slot id from listTrainerSlots (bookTrainerSlot) or listFacilitySlots (bookFacilitySlot).
    Yes

    Returns glofoxSlotBookingResult

    interface glofoxSlotBookingResult {
      studio: string;
      slotId: string;
      booked: boolean;
      bookingId: string | null;
      status: string | null;
      waitlisted: boolean;
      /** The slot would charge a card; Bowmark stopped before paying and nothing was booked. */
      paymentRequired: boolean;
      message: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/bookTrainerSlot

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.bookTrainerSlot({ studio: "<studio>", slotId: "<slotId>" });
  • cancelBookingCancels one of the signed-in member's bookings by id (from listMyBookings), refusing inside the studio's late-cancel window unless the caller…

    Arguments

    NameTypeRequired
    studiostringYes
    bookingIdstring
    A booking id from listMyBookings.
    Yes
    confirmLateCancelboolean
    Required to cancel inside the studio's late-cancel window (may forfeit the credit or charge a fee).
    No

    Returns glofoxCancelResult

    interface glofoxCancelResult {
      studio: string;
      bookingId: string;
      cancelled: boolean;
      lateCancel: boolean;
      /** Hours before the start inside which a cancel is late. */
      cancelWindowHours: number | null;
      message: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/cancelBooking

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.cancelBooking({ studio: "<studio>", bookingId: "<bookingId>" });
  • joinWaitlistPuts the signed-in member on a full class's waitlist.

    Arguments

    NameTypeRequired
    studiostringYes
    classIdstring
    The class id from listClasses.
    Yes
    guestsnumber
    Guests booked alongside the member; default 0.
    No

    Returns glofoxBookingResult

    interface glofoxBookingResult {
      studio: string;
      classId: string;
      /** True when the studio confirmed the booking (or the waitlist place). */
      booked: boolean;
      /** The new booking's id, what cancelBooking takes. */
      bookingId: string | null;
      status: string | null;
      waitlisted: boolean;
      /** The class would charge a card; Bowmark stopped before paying and nothing was booked. */
      paymentRequired: boolean;
      message: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/joinWaitlist

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.joinWaitlist({ studio: "<studio>", classId: "<classId>" });
  • updateMyProfileChanges the signed-in member's own profile fields at that studio (name, email, phone, birth date, address, marketing consent).

    Arguments

    NameTypeRequired
    studiostringYes
    firstNamestringNo
    lastNamestringNo
    emailstringNo
    phonestringNo
    birthDatestring
    YYYY-MM-DD.
    No
    receiveMarketingbooleanNo
    address{ street?: string; city?: string; state?: string; country?: string; postalCode?: string; countryCode?: string; }No

    Returns glofoxProfileUpdateResult

    interface glofoxProfileUpdateResult {
      studio: string;
      updated: boolean;
      /** The site's field names that were sent. */
      changed: string[];
      message: string | null;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/glofox/updateMyProfile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.glofox.updateMyProfile({ studio: "<studio>" });

Use it from code