# Demonstração do Sistema Comptency with Jefferson Graça

> A CompTency é a plataforma que organiza os treinamentos obrigatórios da empresa — NRs, reciclagens e capacitações — e mostra em tempo real quem está conforme, o que vence e onde está o risco.

- Host: Jefferson Graça
- Duration: 30 min
- Location: Cal Video
- Host time zone: America/Sao_Paulo
- Confirmation: Bookings are confirmed instantly.
- Booking page: https://cal.com/comptency/demonstracao
- Event type id: 7320855

## Check availability

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

- Required fields: `name` (Your name), `email` (Email address), `Empresa` (Empresa)
- Optional fields: `attendeePhoneNumber` (Phone number), `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.
