curl "https://api.dev.repp.co.il/v1/open-classes/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b"
const response = await fetch("https://api.dev.repp.co.il/v1/open-classes/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b");
if (!response.ok) throw new Error((await response.json()).error.message);
const data = await response.json();
/** A class still looking for a trainer, open to everyone who fits. No street address. */
interface OpenClass {
id: string;
style: Style;
date: string;
time: string;
starts_at: string;
duration_minutes: number;
pay: number;
region: Region;
city: string | null;
business: Business;
}
/** 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";
/** A business, as the public index shows it. */
interface Business {
id: string;
name: string;
photo_url: string | null;
}
interface ApiError {
error: { code: string; message: string; reason?: string };
}
const response = await fetch("https://api.dev.repp.co.il/v1/open-classes/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b");
if (!response.ok) throw new Error(((await response.json()) as ApiError).error.message);
const data = (await response.json()) as OpenClass;
import requests
response = requests.get(
"https://api.dev.repp.co.il/v1/open-classes/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b",
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/open-classes/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
throw new RuntimeException($data["error"]["message"]);
}
200 · application/json {
"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",
"city": "רמת גן",
"business": {
"id": "7c1f6a52-3b8e-4d1a-9f0e-2a6b8c4d5e10",
"name": "סטודיו נועה",
"photo_url": null
}
}