Skip to content
ReppREST reference · v2

Post a request

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.

The class is at the business's saved address, never sent here: a business with none gets 409 no_place and saves it once on the site. A request posted here always waits for offers; one that closes on the first yes charges a card, so it is posted on the site.

Send invite_trainer_id with invite_hours (1, 3 or 12) to offer it to one trainer first; when that trainer declines or the window runs out, the business opens it to everyone on the site.

The site's own rules hold and come back as action_refused with their word (a day that went by, too many invitations today…).

Needs a key made as read and actions on the site; a read-only key gets 403 read_only_key. An AI app's sign-in acts through the MCP server only, never here. Send an Idempotency-Key header: the same key sent again does nothing and answers the first result.

Changes something · needs a read-and-actions key

POSThttps://api.dev.repp.co.il/v1/requestsKey

Request

IDEMPOTENCY_KEY=$(uuidgen)  # send the same one again to retry this action
curl -X POST "https://api.dev.repp.co.il/v1/requests" \
  -H "Authorization: Bearer $REPP_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "style": "yoga",
  "date": "2026-12-03",
  "time": "18:00",
  "duration_minutes": 60,
  "pay": 180,
  "notes": "מזרנים בארון ליד הכניסה",
  "cancel_policy": "regular"
}'

Response

201 · application/json
{
  "id": "e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b",
  "style": "yoga",
  "date": "2026-12-03",
  "time": "18:00",
  "starts_at": "2026-12-03T16:00:00+00:00",
  "duration_minutes": 60,
  "pay": 180,
  "region": "gush_dan",
  "address": "ביאליק 20, רמת גן",
  "status": "open",
  "close_mode": "choose",
  "cancel_policy": "regular",
  "offers_waiting": 0,
  "trainer": null,
  "invitation": null,
  "created_at": "2026-11-29T07:40:00+00:00"
}
Request body
NameTypeDefaultDescription
styleRequiredone of: pilates, barre, strength, crossfit, trx, calisthenics, cardio, hiit, spinning, running, aqua, yoga, mobility, meditation, personal, martial_arts, boxing, krav_maga, dance, zumba, kids, seniors, other—The class's style: a key of the catalog.
dateRequiredYYYY-MM-DD—The day, in Israel.
timeRequiredstring—The start, HH:MM in Israel, 24 hours, on a quarter hour (:00, :15, :30 or :45).
duration_minutesRequiredinteger 30–120—Length in minutes, one of 30, 45, 60, 75, 90, 120.
payRequiredinteger 1–5000—What the business pays the trainer, in whole shekels, 1 to 5000.
notesstring—A note for the trainer, up to 300 characters.
cancel_policyone of: flexible, regular, strictregularFree cancellation until: flexible 2 hours before, regular 6 hours before, strict 24 hours before.
invite_trainer_iduuid—Offer it to this trainer first (an id from the index).
invite_hoursinteger 1–12—How long the invited trainer has to answer: 1, 3 or 12 hours. Needed with invite_trainer_id.
Response fields (23)
Response fields
FieldTypeDescription
idstringIdentifier.
styleone of: pilates, barre, strength, crossfit, trx, calisthenics, cardio, hiit, spinning, running, aqua, yoga, mobility, meditation, personal, martial_arts, boxing, krav_maga, dance, zumba, kids, seniors, otherA training style: one of the keys in Catalog.
datestringA date in Israel, YYYY-MM-DD.
timestringA time of day in Israel, HH:MM, 24 hours.
starts_atstringAn exact moment, ISO 8601 with its offset.
duration_minutesintegerLength of the class in minutes.
payintegerWhat the business pays the trainer.
regionone of: gush_dan, shfela, sharon, haifa, jerusalem, north, south, judea_samariaA region of Israel: one of the keys in Catalog.
addressstringThe address.
statusone of: open, filled, missedopen: looking for a trainer. filled: a trainer was chosen and paid. missed: it began and no trainer was found.
close_modeone of: choose, firstchoose: the business chooses among offers. first: the first trainer to accept takes it.
cancel_policyone of: flexible, regular, strictFree cancellation until: flexible 2 hours before, regular 6 hours before, strict 24 hours before.
offers_waitingintegerHow many offers wait for a choice.
trainerobject, nullableThe chosen trainer, or null.
trainer.idstringIdentifier.
trainer.namestringThe trainer's name.
trainer.verifiedbooleanHas the blue check.
invitationobject, nullableA direct invitation to one trainer, or null when the request is open to everyone.
invitation.trainer_idstringIdentifier.
invitation.trainer_namestring, nullableThe invited trainer's name.
invitation.stateone of: waiting, accepted, declined, expiredwaiting: no answer yet. accepted, declined. expired: the window ran out.
invitation.untilstringWhen the invitation runs out.
created_atstringAn exact moment, ISO 8601 with its offset.
Errors
StatusCodeMeaning
400bad_bodyThe request body is not a JSON object (or a field in it is missing or malformed). The message names it.
401missing_keyThe endpoint needs a key and no Authorization header came.
401bad_keyThe key is not one of ours, was revoked, or its account was closed or blocked.
403read_only_keyThe key only reads. Actions need a key made with "read and actions" (or an app signed in with the scope repp.write).
403not_a_businessThe endpoint is for businesses and the key's account has none.
409idempotency_conflictThe Idempotency-Key was already used by this key for a different action.
409no_placeThe business has no saved place yet: it is set once on the site ("העסק שלי").
409action_refusedThe site's own rules refused the action; reason says which (for example class_not_available, already_offered, booking_not_available).
429too_many_actionsThe key ran 200 actions in the last 24 hours. Reads still work.
429too_many_requestsOver the rate limit. Wait the seconds in Retry-After (60) and go on.
500server_errorSomething failed on our side. Try again shortly.