# Ruby demo with Joshua Caine

> A 30-minute look at Ruby with Josh: build a framework for one of your real roles, see how interviews get scored against it, and ask anything.

- Host: Joshua Caine
- Duration: 30 min
- Location: Google Meet
- Host time zone: Europe/London
- Confirmation: Bookings are confirmed instantly.
- Booking page: https://cal.com/joshua-caine-932rze/ruby-demo
- Event type id: 7979908

## Check availability

```http
GET https://api.cal.com/v2/slots?eventTypeId=7979908&start=YYYY-MM-DD&end=YYYY-MM-DD&timeZone=<IANA time zone>
cal-api-version: 2024-09-04
```

The response is `{"data":{"YYYY-MM-DD":[{"start":"<ISO 8601 with offset>"}]}}`; no API key is needed.

## Book

```http
POST https://api.cal.com/v2/bookings
cal-api-version: 2026-02-25
Content-Type: application/json

{
  "eventTypeId": 7979908,
  "start": "<UTC ISO 8601 start from the slots response>",
  "attendee": {
    "name": "…",
    "email": "…",
    "timeZone": "<IANA time zone>"
  },
  "guests": [
    "guest@example.com"
  ],
  "bookingFieldsResponses": {
    "company": "…",
    "headcount": "…",
    "hires": "…",
    "how-you-hire": "…",
    "notes": "…"
  }
}
```

- Required fields: `name` (Your name), `email` (Email address), `company` (Company), `headcount` (How many people work there?), `hires` (How many people are you hiring in the next six months?)
- Optional fields: `how-you-hire` (How do you hire now, and what's not working?), `notes` (Additional notes), `guests` (Add guests)
- `name` and `email` go in `attendee` and `guests` is a list of emails; every other field goes in `bookingFieldsResponses` under its name.
