# Prezentacja systemu Earnest with Kasia Fojucik

> Zobacz, jak Earnest automatyzuje operacje flot i dowiedz się, jak usprawnić działanie swojej floty, by zarabiać więcej. Spotkanie może odbyć się online lub – jeśli wolisz – zostaw numer, a my oddzwonimy.

- Host: Kasia Fojucik
- Duration: 30 min
- Location: Google Meet
- Host time zone: Europe/Amsterdam
- Confirmation: Bookings are confirmed instantly.
- Booking page: https://cal.com/kasiafojucik/earnest-pl
- Event type id: 3937698

## Check availability

```http
GET https://api.cal.com/v2/slots?eventTypeId=3937698&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": 3937698,
  "start": "<UTC ISO 8601 start from the slots response>",
  "attendee": {
    "name": "…",
    "email": "…",
    "timeZone": "<IANA time zone>"
  },
  "guests": [
    "guest@example.com"
  ],
  "bookingFieldsResponses": {
    "attendeePhoneNumber": "…",
    "notes": "…"
  }
}
```

- Required fields: `attendeePhoneNumber` (Numer Telefonu), `name` (Your name), `email` (Adres email), `notes` (Dodatkowe informacje)
- Optional fields: `guests` (Dodaj gości)
- `name` and `email` go in `attendee` and `guests` is a list of emails; every other field goes in `bookingFieldsResponses` under its name.
