# Dicoding Mentoring with Ivan Aulia Rahman

> Klik untuk Informasi Voucher Mentoring Saya adalah seorang Software Engineer di Starva dan External Reviewer di Dicoding dengan 2 tahun pengalaman. Beberapa teknologi yang saya kuasai adalah Golang, Node.js, Laravel, MySQL, PostgreSQL, Redis, RabbitMQ, Docker, AWS, GCP, Microsoft Azure, Digital Ocean. Saya bisa membagikan sudut pandang saya untuk membantu menyelesaikan permasalahan yang anda alami dalam bidang Back-End Development dan Project Management.

- Host: Ivan Aulia Rahman
- Duration: 30 min
- Location: Google Meet
- Host time zone: Asia/Jakarta
- Confirmation: The host confirms each booking; it stays pending until they accept it.
- Booking page: https://cal.com/ivanauliaa/dicoding-mentoring
- Event type id: 782131

## Check availability

```http
GET https://api.cal.com/v2/slots?eventTypeId=782131&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": 782131,
  "start": "<UTC ISO 8601 start from the slots response>",
  "attendee": {
    "name": "…",
    "email": "…",
    "timeZone": "<IANA time zone>"
  },
  "bookingFieldsResponses": {
    "question": "…",
    "voucher": "…"
  }
}
```

- Required fields: `name` (Your name), `email` (Email Dicoding), `question` (Pertanyaan atau Pesan untuk Mentor), `voucher` (Voucher untuk Mentoring)
- Optional fields: none
- `name` and `email` go in `attendee` and `guests` is a list of emails; every other field goes in `bookingFieldsResponses` under its name.
- A successful response is a pending booking request.
