# Book a meeting with Alexey Komissarouk

> https://meet.alexeymk.com books a Zoom call with Alexey Komissarouk: 15, 30, 45, 60, 30 minutes (default 30).
> Agents may book on behalf of a person using the JSON API below. No sign-in, no API key, no CAPTCHA.

## Rules

- Meeting length is set by the link Alexey shared: use the `type` matching it (the page you were sent says which). Types (the `type` field / query param): "15" = 15 min, "30" = 30 min, "45" = 45 min, "60" = 60 min, "coffee" = 30 min. Default "30". Pages: https://meet.alexeymk.com/15, https://meet.alexeymk.com/30, https://meet.alexeymk.com/45, https://meet.alexeymk.com/60, https://meet.alexeymk.com/coffee
- On Zoom at https://room.alexeymk.com
- In person: type "coffee" (https://meet.alexeymk.com/coffee), 30 minutes. Mon & Wed in SF near Alexey's office at 3:00pm or 3:45pm; Tue, Thu & Fri at a café in Berkeley. Each slot in /api/slots?type=coffee has a `place` ("sf" or "berkeley"; labels in `meeting.places`). Needs 24 hours' notice. If the guest would rather do Zoom, use the default type.
- Availability: Tue, Thu, Fri, 10:00 to 17:15 in America/Los_Angeles; every meeting ends by the end of that window. Starts every 30 minutes (every 15 for 15-minute meetings)
- Minimum notice: 6 hours. Booking horizon: 7 weeks (through the end of that day)
- All times in the API are UTC ISO 8601. Convert for display only.
- People Alexey already knows are confirmed immediately. Anyone else gets a "pending" response: the slot is held as "Requested: <name> <> Alexey" and the guest gets a tentative calendar invite. It updates once Alexey confirms (usually within a day), or is cancelled if he can't. You can't tell in advance which one you'll get, so handle both.
- The guest should accept the calendar invite. If you can act on the guest's calendar, accept it there; otherwise tell the guest to.
- After booking, everything happens in Google Calendar: Alexey confirms, moves or cancels the event there, and the guest gets the usual invite updates. To reschedule or cancel, reply to the invite or decline it.
- When Alexey is traveling, regular slots disappear for those days and `GET /api/slots` lists the trips in `away` (`[{from, to, place, mode}]`, dates in his timezone; mode "on_request" or "blocked"). Use POST /api/ask to request a time during a trip.
- A GET request never creates or changes a booking.

## Endpoints

### GET /api/slots

All open slots in the booking horizon (about 7 weeks), as UTC start/end pairs, sorted. Optional query: `type` (default "30"). There is no date filter: filter the list yourself, and interpret the guest's request ("next Tuesday afternoon") in the guest's own timezone.

Example response:

```json
{
  "meeting": {"type": "30", "name": "30 min", "durationMinutes": 30, "location": "https://room.alexeymk.com"},
  "availabilityTimezone": "America/Los_Angeles",
  "slots": [
    {"start": "2026-12-01T18:00:00.000Z", "end": "2026-12-01T18:30:00.000Z"},
    {"start": "2026-12-01T18:30:00.000Z", "end": "2026-12-01T19:00:00.000Z"}
  ]
}
```

### POST /api/book

Content-Type: application/json. Fields:

- `start` (required): a `start` value from /api/slots
- `name` (required): the guest's name
- `email` (required): the guest's email; the invite goes here
- `guests` (optional): array of up to 5 extra attendee emails
- `topic` (optional, max 200 chars), `note` (optional, max 1000 chars)
- `timezone` (recommended): the guest's IANA timezone, e.g. "Asia/Tokyo". Used only for display to Alexey.
- `agent` (optional): a short string saying you are an AI agent and on whose behalf, e.g. "Claude for Jane Doe"

Example request:

```json
{"start": "2026-12-01T18:00:00.000Z", "name": "Jane Doe", "email": "jane@example.com", "topic": "Growth hiring", "timezone": "America/New_York", "agent": "Claude for Jane Doe"}
```

Example response (200):

```json
{
  "status": "confirmed",
  "message": "Booked. A calendar invite is on its way to jane@example.com. Please accept the calendar invite to keep this slot. ...",
  "booking": {
    "status": "confirmed",
    "start": "2026-12-01T18:00:00.000Z",
    "end": "2026-12-01T18:30:00.000Z",
    "startPacific": "Tue, Dec 1, 10:00am PT",
    "location": "https://room.alexeymk.com"
  }
}
```

`status` is "confirmed" (invite sent now) or "pending" (held; tentative invite sent now, updated once Alexey confirms). There are no follow-up endpoints: the calendar invite is the booking.

### POST /api/ask: when none of the open slots work (or Alexey is traveling)

Propose your own times. Body:
- `name`, `email` (required)
- `why` (required): one line on why you'd like to meet
- `proposals`: 1-3 ISO 8601 start times that work for the guest (at least 2 hours out), and/or `preferences`: plain words, e.g. "any morning the week of Jan 11, New York time"
- optional `timezone`, `company`, `guests`, `note`, `agent`, `type`

Returns `{"status": "sent", "message": "Thanks, Alexey will send an invite if one works."}`. Nothing is put on the calendar. If a time works, Alexey sends the guest a calendar invite; otherwise the guest may not hear back.

## Errors

Errors return a non-2xx status with `{"error": "<code>", "message": "<human text>"}`. Codes:

- `invalid_request`, `invalid_email`: fix the body and retry
- `invalid_slot`: start is not a bookable slot; use a value from /api/slots
- `too_soon`: less than 6 hours from now
- `out_of_range`: beyond the booking horizon
- `slot_taken`: someone took it; fetch /api/slots again and pick another
- `away`: Alexey is traveling that day; use POST /api/ask instead
- `rate_limited`, `daily_cap`, `hold_cap`: stop and tell the human to email alexey86@gmail.com
- `booking_unavailable`: the booking system is down; tell the human to email alexey86@gmail.com

## Agents that can only make GET requests

Pick a `start` from /api/slots and give your human this link to confirm in one click: `https://meet.alexeymk.com/?slot=<start>`.
Do not put names or emails in the URL.
