Requests
The business's "need a substitute" requests from 30 days ago on, soonest first, each with where it stands.
Cancelled requests are left out. A key of an account with no business gets 403 not_a_business.
Request
curl "https://api.dev.repp.co.il/v1/requests" \
-H "Authorization: Bearer $REPP_API_KEY"const response = await fetch("https://api.dev.repp.co.il/v1/requests", {
headers: { Authorization: `Bearer ${process.env.REPP_API_KEY}` },
});
if (!response.ok) throw new Error((await response.json()).error.message);
const data = await response.json();/** The business's requests. */
interface Requests {
items: ReppRequest[];
}
/** One of the business's "need a substitute" requests. */
interface ReppRequest {
id: string;
style: Style;
date: string;
time: string;
starts_at: string;
duration_minutes: number;
pay: number;
region: Region;
address: string;
status: "open" | "filled" | "missed";
close_mode: "choose" | "first";
cancel_policy: "flexible" | "regular" | "strict";
offers_waiting: number;
trainer: {
id: string;
name: string;
verified: boolean;
} | null;
invitation: {
trainer_id: string;
trainer_name: string | null;
state: "waiting" | "accepted" | "declined" | "expired";
until: string;
} | null;
created_at: string;
}
/** A training style: one of the keys in Catalog. */
type Style =
| "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";
/** A region of Israel: one of the keys in Catalog. */
type Region = "gush_dan" | "shfela" | "sharon" | "haifa" | "jerusalem" | "north" | "south" | "judea_samaria";
interface ApiError {
error: { code: string; message: string; reason?: string };
}
const response = await fetch("https://api.dev.repp.co.il/v1/requests", {
headers: { Authorization: `Bearer ${process.env.REPP_API_KEY}` },
});
if (!response.ok) throw new Error(((await response.json()) as ApiError).error.message);
const data = (await response.json()) as Requests;import os
import requests
response = requests.get(
"https://api.dev.repp.co.il/v1/requests",
headers={"Authorization": f"Bearer {os.environ['REPP_API_KEY']}"},
timeout=30,
)
if not response.ok:
raise RuntimeError(response.json()["error"]["message"])
data = response.json()<?php
$ch = curl_init("https://api.dev.repp.co.il/v1/requests");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("REPP_API_KEY"),
],
]);
$data = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
throw new RuntimeException($data["error"]["message"]);
}Response
200 · application/json
{
"items": [
{
"id": "a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b",
"style": "yoga",
"date": "2026-12-01",
"time": "18:00",
"starts_at": "2026-12-01T16:00:00+00:00",
"duration_minutes": 60,
"pay": 180,
"region": "gush_dan",
"address": "ביאליק 20, רמת גן",
"status": "open",
"close_mode": "choose",
"cancel_policy": "regular",
"offers_waiting": 2,
"trainer": null,
"invitation": null,
"created_at": "2026-11-26T08:12:00+00:00"
}
]
}Response fields (24)
| Field | Type | Description |
|---|---|---|
items | array of Request | From 30 days ago on, soonest first. |
items[].id | string | Identifier. |
items[].style | one 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 | A training style: one of the keys in Catalog. |
items[].date | string | A date in Israel, YYYY-MM-DD. |
items[].time | string | A time of day in Israel, HH:MM, 24 hours. |
items[].starts_at | string | An exact moment, ISO 8601 with its offset. |
items[].duration_minutes | integer | Length of the class in minutes. |
items[].pay | integer | What the business pays the trainer. |
items[].region | one of: gush_dan, shfela, sharon, haifa, jerusalem, north, south, judea_samaria | A region of Israel: one of the keys in Catalog. |
items[].address | string | The address. |
items[].status | one of: open, filled, missed | open: looking for a trainer. filled: a trainer was chosen and paid. missed: it began and no trainer was found. |
items[].close_mode | one of: choose, first | choose: the business chooses among offers. first: the first trainer to accept takes it. |
items[].cancel_policy | one of: flexible, regular, strict | Free cancellation until: flexible 2 hours before, regular 6 hours before, strict 24 hours before. |
items[].offers_waiting | integer | How many offers wait for a choice. |
items[].trainer | object, nullable | The chosen trainer, or null. |
items[].trainer.id | string | Identifier. |
items[].trainer.name | string | The trainer's name. |
items[].trainer.verified | boolean | Has the blue check. |
items[].invitation | object, nullable | A direct invitation to one trainer, or null when the request is open to everyone. |
items[].invitation.trainer_id | string | Identifier. |
items[].invitation.trainer_name | string, nullable | The invited trainer's name. |
items[].invitation.state | one of: waiting, accepted, declined, expired | waiting: no answer yet. accepted, declined. expired: the window ran out. |
items[].invitation.until | string | When the invitation runs out. |
items[].created_at | string | An exact moment, ISO 8601 with its offset. |
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_key | The endpoint needs a key and no Authorization header came. |
| 401 | bad_key | The key is not one of ours, was revoked, or its account was closed or blocked. |
| 403 | not_a_business | The endpoint is for businesses and the key's account has none. |
| 429 | too_many_requests | Over the rate limit. Wait the seconds in Retry-After (60) and go on. |
| 500 | server_error | Something failed on our side. Try again shortly. |