# Repp API Reference > REST reference · v2. Programmatic access to Repp's public index - trainers, open classes and spaces - and to your own account: its calendar, its requests and bookings, and a few actions that move no money (but one: declining a space request refunds the trainer). Most endpoints read; a few actions change something, and none moves money. Every page below is published as Markdown as well as HTML: its page is https://docs.dev.repp.co.il/ and its Markdown https://docs.dev.repp.co.il/.md - https://docs.dev.repp.co.il/trainers and https://docs.dev.repp.co.il/trainers.md - or read the whole reference in one file at https://docs.dev.repp.co.il/llms-full.txt. The OpenAPI 3.1 file is at https://api.dev.repp.co.il/v1/openapi.json. AI assistants can also connect to the MCP server at https://api.dev.repp.co.il/mcp (it reads, and acts only when the sign-in allowed actions): see https://docs.dev.repp.co.il/mcp.md. Actions are explained at https://docs.dev.repp.co.il/actions.md. New here? Start with https://docs.dev.repp.co.il/quickstart.md. Building a system for fitness businesses? Repp Embed puts Repp inside it: start at https://docs.dev.repp.co.il/partners.md. ## Guides - [Introduction](https://docs.dev.repp.co.il/introduction.md): Programmatic access to Repp's public index - trainers, open classes and spaces - and to your own account: its calendar, its requests and bookings, and a few actions that move no money (but one: declining a space request refunds the trainer). - [Quickstart](https://docs.dev.repp.co.il/quickstart.md): Your first call in a few minutes: let your coding agent set it up, or do it by hand. Both end with a key in your environment and a real answer from the API. - [Authentication](https://docs.dev.repp.co.il/authentication.md): An account's endpoints take one personal key, read from the Authorization header only. A key reads, or reads and acts. - [Conventions](https://docs.dev.repp.co.il/conventions.md): One base URL, JSON everywhere, snake_case fields, whole shekels and Israel's dates. - [Pagination](https://docs.dev.repp.co.il/pagination.md): The index's lists come in pages of 60, up to 100 with limit, and the next page with offset. - [Actions](https://docs.dev.repp.co.il/actions.md): A few endpoints change something, as the same step on the site would; none moves money, but declining a space request refunds the trainer by the site's rules. They need a read-and-actions key, take an Idempotency-Key, and are limited to 30 a minute and 200 a day per key. - [Rate limits](https://docs.dev.repp.co.il/rate-limits.md): 120 requests a minute per key on an account's endpoints (of them 30 actions, and 200 actions a day), 60 per address on the public index, 600 per address in all. - [Errors](https://docs.dev.repp.co.il/errors.md): Every outcome on the surface, in one table. Each endpoint's section repeats the rows that apply to it. - [MCP](https://docs.dev.repp.co.il/mcp.md): Repp's MCP server lets an AI assistant read the index and your account, and act only when you allow it: one address, sign in with your phone. ## API reference ### General - [Status](https://docs.dev.repp.co.il/me.md): `GET /v1/me` - Confirms your key is valid and tells you whose it is: the account's business and its trainer profile. - [API root](https://docs.dev.repp.co.il/api-root.md): `GET /v1` - The API's name and version, and where its documentation and OpenAPI file are. - [Catalog](https://docs.dev.repp.co.il/catalog.md): `GET /v1/catalog` - The fixed lists - training styles, regions and days of the week - with their Hebrew names. - [What waits for me](https://docs.dev.repp.co.il/waiting.md): `GET /v1/waiting` - What waits for the account's own action, as the site's calendar page ("יומן") lists it: offers to choose from, space requests to answer, classes to rate. - [Looking for work](https://docs.dev.repp.co.il/looking-for-work.md): `PUT /v1/me/looking-for-work` (changes something) - Turns the trainer's "looking for work" switch on or off. On, the trainer is first in the index as "available now" and gets word of classes that fit. ### Trainers - [Trainers](https://docs.dev.repp.co.il/trainers.md): `GET /v1/trainers` - The trainers in the public index: available now first, then verified, then those who switched on most recently, then the newest profiles. - [One trainer](https://docs.dev.repp.co.il/trainer.md): `GET /v1/trainers/{id}` - One trainer from the public index. `404` when the trainer is not (or no longer) in it. ### Open classes - [Open classes](https://docs.dev.repp.co.il/open-classes.md): `GET /v1/open-classes` - Classes still looking for a trainer and open to everyone who fits, soonest first. - [One open class](https://docs.dev.repp.co.il/open-class.md): `GET /v1/open-classes/{id}` - One class still looking for a trainer. `404` once it has its trainer, was cancelled or has begun. - [Offer on a class](https://docs.dev.repp.co.il/offer.md): `POST /v1/open-classes/{id}/offer` (changes something) - Offers you, the key's trainer, for an open class. The business then chooses among the offers on the site, and you are told if you were chosen. - [Take an offer back](https://docs.dev.repp.co.il/withdraw-offer.md): `DELETE /v1/open-classes/{id}/offer` (changes something) - Takes back your offer on a class while the business has not chosen anyone. It costs nothing, as on the site. ### Spaces - [Spaces](https://docs.dev.repp.co.il/spaces.md): `GET /v1/spaces` - Spaces for rent by the hour, newest first. - [One space](https://docs.dev.repp.co.il/space.md): `GET /v1/spaces/{id}` - One space for rent. `404` once it is no longer rented out. - [Free hours](https://docs.dev.repp.co.il/free-spaces.md): `GET /v1/free-spaces` - The spaces with an hour still free on a day (at an hour, when you give one), each with its free hours. - [My spaces](https://docs.dev.repp.co.il/my-spaces.md): `GET /v1/my-spaces` - The business's own spaces, paused ones too, with their address, hours and how they are booked. ### Calendar - [Calendar](https://docs.dev.repp.co.il/calendar.md): `GET /v1/calendar` - What is in the account's calendar, as the site's own calendar shows it. ### Requests - [Requests](https://docs.dev.repp.co.il/requests.md): `GET /v1/requests` - The business's "need a substitute" requests from 30 days ago on, soonest first, each with where it stands. - [One request](https://docs.dev.repp.co.il/request.md): `GET /v1/requests/{id}` - One of the business's requests, with the trainers who offered: name, blue check and rating. - [Post a request](https://docs.dev.repp.co.il/post-request.md): `POST /v1/requests` (changes something) - Posts a "need a substitute" request for the business: trainers who fit are told, offer on it, and the business chooses among them on the site. ### Bookings - [Bookings](https://docs.dev.repp.co.il/bookings.md): `GET /v1/bookings` - The account's space bookings from 30 days ago on, soonest first: a business's spaces' bookings, or the trainer's own. - [Answer a space request](https://docs.dev.repp.co.il/booking-decision.md): `POST /v1/bookings/{id}/decision` (changes something) - Approves or declines a trainer's request to book one of the business's spaces. It charges nothing; a decline returns the trainer's payment by the site's own rules. ### Ratings - [Rate](https://docs.dev.repp.co.il/rate.md): `POST /v1/ratings` (changes something) - Gives stars, 1 to 5, to a class or a space booking that is over: a business rates its trainer, a trainer the business. ## Partners - [Repp Embed for partners](https://docs.dev.repp.co.il/partners.md): 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. - [Partner quickstart](https://docs.dev.repp.co.il/partners-quickstart.md): The messenger in your product in five steps: keys, one server endpoint, the script, your own buttons if you want them, and blocking booked rooms from webhooks. - [Authentication & keys](https://docs.dev.repp.co.il/partners-authentication.md): Two keys: a publishable one in your page that only says who you are, and a secret one on your server that makes sessions. The browser never holds more than a one-time secret. - [Sessions](https://docs.dev.repp.co.il/partners-sessions.md): `POST /partner/v1/embed-sessions` (your server, with your secret key) - Make a session for one Repp frame on your page: the messenger, or one of the single components. Call it from your server with your secret key, and hand only the `client_secret` to the page. - [Webhooks](https://docs.dev.repp.co.il/partners-webhooks.md): Repp tells your server, signed as Stripe does, when something happens on a class or a room that came from your system: a request posted, an offer, a substitute trainer chosen, a room booked or freed. - [Messenger SDK](https://docs.dev.repp.co.il/partners-messenger.md): One script, repp-embed.js: load it with your publishable key and a way to get sessions, boot the messenger, and open it from anywhere in your product. - [Events](https://docs.dev.repp.co.il/partners-events.md): What Repp tells your page as it happens, while it is open: frames loading, a request posted, a substitute trainer chosen, a room booked. Ids and states only. - [Security](https://docs.dev.repp.co.il/partners-security.md): Repp's frames show only on the origins you registered, talk only to your page over a private channel, need no third-party cookies, and are limited per key and per address. - [Testing](https://docs.dev.repp.co.il/partners-testing.md): Try the whole flow on Repp's demo, then build against your test keys and a test business before asking for live keys. ## Changelog - [Changelog](https://docs.dev.repp.co.il/changelog.md): What changed in Repp's API, its MCP server and Repp Embed, newest first. A change that breaks code comes only with a new version.