> Documentation index: https://docs.dev.repp.co.il/llms.txt - fetch it to find every page of these docs.

# One request

One of the business's requests, with the trainers who offered: name, blue check and rating.

- `GET https://api.dev.repp.co.il/v1/requests/{id}`
- Needs a key: `Authorization: Bearer repp_…`.

The API never sends a phone number. `404` when the request is not the business's, or was cancelled.

## Path parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `id` **(required)** | uuid | — | The request's id. |

## Request

**cURL**

```bash
curl "https://api.dev.repp.co.il/v1/requests/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b" \
  -H "Authorization: Bearer $REPP_API_KEY"
```

**JavaScript**

```js
const response = await fetch("https://api.dev.repp.co.il/v1/requests/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b", {
  headers: { Authorization: `Bearer ${process.env.REPP_API_KEY}` },
});
if (!response.ok) throw new Error((await response.json()).error.message);
const data = await response.json();
```

**TypeScript**

```ts
/** One request with its offers. */
interface RequestDetail {
  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;
  offers: Offer[];
}

/** 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 trainer's offer on a request. */
interface Offer {
  trainer: {
    id: string;
    name: string;
    verified: boolean;
    rating: Rating;
  };
  status: "pending" | "chosen";
  offered_at: string;
}

/** The rating, or null while nobody has rated yet. */
type Rating = {
  average: number;
  count: number;
} | null;

interface ApiError {
  error: { code: string; message: string; reason?: string };
}

const response = await fetch("https://api.dev.repp.co.il/v1/requests/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b", {
  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 RequestDetail;
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://api.dev.repp.co.il/v1/requests/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b",
    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**

```php
<?php
$ch = curl_init("https://api.dev.repp.co.il/v1/requests/a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b");
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)

```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",
  "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",
  "offers": [
    {
      "trainer": {
        "id": "3f2b9c1e-8a7d-4e6f-b5a4-1c2d3e4f5a6b",
        "name": "דנה כהן",
        "verified": true,
        "rating": {
          "average": 4.8,
          "count": 12
        }
      },
      "status": "pending",
      "offered_at": "2026-11-26T09:30:00+00:00"
    },
    {
      "trainer": {
        "id": "d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a",
        "name": "עומר ברק",
        "verified": false,
        "rating": null
      },
      "status": "pending",
      "offered_at": "2026-11-26T10:05:00+00:00"
    }
  ]
}
```

## Response fields

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Identifier. |
| `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. |
| `date` | string | A date in Israel, YYYY-MM-DD. |
| `time` | string | A time of day in Israel, HH:MM, 24 hours. |
| `starts_at` | string | An exact moment, ISO 8601 with its offset. |
| `duration_minutes` | integer | Length of the class in minutes. |
| `pay` | integer | What the business pays the trainer. |
| `region` | one of: gush_dan, shfela, sharon, haifa, jerusalem, north, south, judea_samaria | A region of Israel: one of the keys in Catalog. |
| `address` | string | The address. |
| `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. |
| `close_mode` | one of: choose, first | choose: the business chooses among offers. first: the first trainer to accept takes it. |
| `cancel_policy` | one of: flexible, regular, strict | Free cancellation until: flexible 2 hours before, regular 6 hours before, strict 24 hours before. |
| `offers_waiting` | integer | How many offers wait for a choice. |
| `trainer` | object, nullable | The chosen trainer, or null. |
| `trainer.id` | string | Identifier. |
| `trainer.name` | string | The trainer's name. |
| `trainer.verified` | boolean | Has the blue check. |
| `invitation` | object, nullable | A direct invitation to one trainer, or null when the request is open to everyone. |
| `invitation.trainer_id` | string | Identifier. |
| `invitation.trainer_name` | string, nullable | The invited trainer's name. |
| `invitation.state` | one of: waiting, accepted, declined, expired | waiting: no answer yet. accepted, declined. expired: the window ran out. |
| `invitation.until` | string | When the invitation runs out. |
| `created_at` | string | An exact moment, ISO 8601 with its offset. |
| `offers` | array of Offer | The offers, oldest first. |
| `offers[].trainer` | object | The trainer who offered. The API never sends a phone number. |
| `offers[].trainer.id` | string | Identifier. |
| `offers[].trainer.name` | string | The trainer's name. |
| `offers[].trainer.verified` | boolean | Has the blue check. |
| `offers[].trainer.rating` | Rating, nullable | The rating, or null while nobody has rated yet. |
| `offers[].status` | one of: pending, chosen | pending: waits for a choice. chosen: chosen. |
| `offers[].offered_at` | string | An exact moment, ISO 8601 with its offset. |

## Errors

| 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. |
| 404 | `not_found` | No such endpoint, or no such item for this caller. |
| 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. |
