# Book a meeting with Alexey Komissarouk

> https://meet.alexeymk.com books a Zoom call with Alexey Komissarouk: 15, 30, 45, 60 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. Default "30". Pages: https://meet.alexeymk.com/15, https://meet.alexeymk.com/30, https://meet.alexeymk.com/45, https://meet.alexeymk.com/60
- On Zoom at https://room.alexeymk.com
- 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 and a calendar invite follows once Alexey approves (usually within a day). You can't tell in advance which one you'll get, so handle both.
- The guest MUST accept the calendar invite. Bookings not accepted within 48 hours of the invite are released. If you can act on the guest's calendar, accept the invite there. Otherwise tell the guest to accept it. Only call `/attend` (below) if the guest has explicitly told you they will attend.
- 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",
    "acceptance": {"required": true, "accepted": false, "releaseAfterHours": 48, "message": "..."}
  },
  "manageUrl": "https://meet.alexeymk.com/m/<token>"
}
```

`status` is "confirmed" (invite sent now) or "pending" (held, invite follows after Alexey approves). Give the guest the `manageUrl`: it lets them reschedule or cancel.

### GET /api/booking/{token}

Current state of a booking. The token is the last path segment of `manageUrl`. `booking.status` is "confirmed", "pending" or "cancelled".

### POST /api/booking/{token}/reschedule

Body: `{"start": "<new start from /api/slots>"}`. Moves the same event; the guest gets an updated invite and must accept again.

### POST /api/booking/{token}/cancel

Body: `{"reason": "optional text"}`.

### POST /api/booking/{token}/attend

Confirms the guest will attend (same as accepting the invite, or the "I'll be there" link in the reminder). Call it only when the guest has explicitly confirmed to you that they will attend.

### 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": "pending", "askUrl": "..."}`. Alexey either accepts one of the proposed times, which books it and sends the calendar invite, or offers other times, or replies with a note. Unanswered requests expire after 48 hours.

### GET /api/ask/{token}

The token is the last path segment of `askUrl`. `ask.status` is "pending", "booked" (one of the proposed or offered times; the invite is on its way), "offered" (Alexey suggested other times: see `ask.offers`, start/end pairs in UTC), "declined" (see `ask.message`) or "expired". Poll it occasionally (every few minutes at most), or give the guest the `askUrl`.

### POST /api/ask/{token}/book

Body: `{"start": "<one of ask.offers[].start>"}`. Books it as confirmed and sends the calendar invite. Response has the same shape as POST /api/book.

## 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
- `already_booked`, `pending`, `declined`: ask state errors on /api/ask/{token}/book
- `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
- `not_found`, `cancelled`: bad link, or the booking no longer exists

## 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.
