# Meeting with Cocoon with Cocoon Training - Ammar

> Cocoon is a skill development and transformation company designed for the future of work. We help professionals and organizations upskill, reskill, and adapt to a world where artificial intelligence is reshaping work. From mastering new technologies to building critical soft skills. Learn more about what we do. mycocoon.life

- Host: Cocoon Training - Ammar
- Duration: 15, 30 min
- Location: Google Meet
- Host time zone: Asia/Colombo
- Confirmation: The host confirms each booking; it stays pending until they accept it.
- Booking page: https://cal.com/cocoon-ammar/meet
- Event type id: 2830306

## Check availability

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

- Required fields: `name` (Your name), `email` (Email address)
- Optional fields: `attendeePhoneNumber` (Phone number), `title` (Anything you have to share?), `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.
- `lengthInMinutes` picks one of 15, 30; pass the same value to the slots request as `duration`.
- A successful response is a pending booking request.
