Skip to content
ReppREST reference · v2

Repp Embed for partners

Put Repp inside your product: one floating button and a panel, where a business finds substitute trainers for its classes and rents out its rooms, without leaving your system.

Early access. Repp Embed works with test keys only for now: a live partner opens once the partner-side confirmation of connecting ships. Contact us for live keys.

Repp is the arena of the fitness world: businesses find substitute trainers and rent out their empty spaces, and trainers find work and a place to train. Repp Embed is for the systems businesses already run on - a booking system, a studio's software - so the business does all of that from inside your product.

What you get

  • The messenger, in Intercom's way: Repp's round button floats in a bottom corner of your page, with a count of what waits for the business and of what is new since it last looked (a "+1"), and a panel grows out of it. Everything of Repp is in that panel, in three tabs at its foot as in Intercom's (Home, Activity, Account): Home starts something, Activity follows each class and space as a conversation, and Account edits how the business appears in Repp; you write no screens.
  • Substitute trainers. The panel lists the business's coming classes, as your server sends them. For any of them the business asks Repp for a substitute trainer in two short steps, sees the offers, and follows where each request stands.
  • Renting out rooms. The panel lists your rooms; the business opens one for rent as a space on Repp, by the rules of Repp's own form: a name, how many people, a price per hour, the days, whole hours from 6:00 to 22:00, booked at once or after its yes (instant, approval), a cancellation policy (flexible, regular, strict) and a photo. Trainers then book it on Repp, and the panel shows each room's bookings.
  • Events in your page, so your product follows along while it is open: a request posted, a substitute trainer chosen, a room booked or freed (see Events).
  • Webhooks to your server, signed as Stripe's are, for everything that happens on a class or room that came from your system, also while no page is open. They are the source of truth (see Webhooks).
  • A text message to the business. When something happens on a class or room that came from your system that the business should act on or know - the first offer on a class, the chosen trainer cancelling, a room booked or asked for, a booking cancelled - Repp texts the business itself, so it hears of it even with your system closed. It is on by default; an owner or a manager turns it off or on in the panel's Account tab. You send nothing for this.

How the pieces fit

  1. Your serverMakes a session with your secret key, sending the business, the person, the coming classes and the rooms.
  2. The sessionAnswers a client_secret: one use, 5 minutes. Your server hands it, and nothing else, to your page.
  3. The SDKrepp-embed.js in your page draws the button, loads Repp's frame, and passes the secret to it over a private channel.
  4. The panelRepp's own frame on Repp's host trades the secret for a short token kept in its memory, and shows the business everything.

What never passes

  • Your members' data. Repp asks for the business, the person using the panel (an id, a role and a first name), the coming classes and the rooms. Nothing about the people who train with the business.
  • Money. Nothing is paid inside the panel. Choosing an offer, paying, approving or declining a booking request, and editing or closing a space open Repp's own site in a new tab (studio.dev.repp.co.il/spaces for spaces), where the business is signed in to Repp.
  • Repp's data in your page. Everything is drawn inside Repp's frame; your page gets only events with ids and states (at most a chosen trainer's short name and photo). Never a phone, a full name or an amount.

Who may do what

Roles
Role you sendIn the panel
ownerEverything below, and connecting and disconnecting the business's Repp account (the panel's Account tab).
managerAsks for substitute trainers, opens rooms for rent, edits the business's card in Repp (the Account tab), and turns the business's text messages off or on.
staffSees the classes, the requests and the rooms, and where each stands, and reads (never changes) the business's card and the text messages switch.

The business connects once: an owner presses "connect" in the panel, signs in to Repp in a window of Repp's own (a phone and a code by text message), and approves. A Repp account with no address saved yet is sent to its page on Repp first.

New to Repp? The first time, the owner signs up to Repp in that same window and walks a short onboarding there - who they are and the business's name, where it is, and a photo (which can wait) - so the business's card is complete in Repp's index and trainers know where they are going. An account that already has these goes straight to approving. It is Repp's own window and Repp's own steps: you build nothing for it, and nothing of it passes through your page.