Skip to content
ReppREST reference · v2

One trainer

One trainer from the public index. 404 when the trainer is not (or no longer) in it.

GEThttps://api.dev.repp.co.il/v1/trainers/{id}Public

Request

curl "https://api.dev.repp.co.il/v1/trainers/3f2b9c1e-8a7d-4e6f-b5a4-1c2d3e4f5a6b"

Response

200 · application/json
{
  "id": "3f2b9c1e-8a7d-4e6f-b5a4-1c2d3e4f5a6b",
  "name": "דנה כהן",
  "photo_url": "https://example.supabase.co/storage/v1/object/public/avatars/3f2b9c1e/photo.webp",
  "styles": [
    "yoga",
    "pilates"
  ],
  "regions": [
    "gush_dan"
  ],
  "rating": {
    "average": 4.8,
    "count": 12
  },
  "verified": true,
  "available_now": true
}
Path parameters
NameTypeDefaultDescription
idRequireduuid—The trainer's id.
Response fields (10)
Response fields
FieldTypeDescription
idstringIdentifier.
namestringThe trainer's name.
photo_urlstring, nullableThe trainer's photo, or null.
stylesarray of StyleThe styles the trainer teaches.
regionsarray of RegionThe regions the trainer works in.
ratingRating, nullableThe rating, or null while nobody has rated yet.
rating.averagenumberThe average stars, 1 to 5, to two decimals.
rating.countintegerHow many ratings.
verifiedbooleanWe checked the trainer's instructor certificate (the blue check).
available_nowbooleanThe trainer's "looking for work" switch is on.
Errors
StatusCodeMeaning
404not_foundNo such endpoint, or no such item for this caller.
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.