> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create booking type

> Creates a personal TidyCal scheduling page.

`tidyCal.createBookingType` creates a booking type for the connected account.

```ts automations/create-tidycal-booking-type.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { tidyCal } from "automate.ax/tidycal"

export default automation("Create TidyCal booking type", () => {
  onDashboardRun({ title: "Create TidyCal booking type" })
  tidyCal.createBookingType({
    title: "30-minute consultation",
    description: "Discuss your project.",
    durationMinutes: 30,
    urlSlug: "consultation",
    paddingMinutes: 10,
  })
})
```

Required inputs are `title`, `description`, `durationMinutes`, and `urlSlug`. `paddingMinutes` defaults to `0`, `latestAvailabilityDays` to `60`, `private` to `false`, `maxBookings` to `1`, `maxGuestInvitesPerBooker` to `0`, `displaySeatsRemaining` to `false`, `bookingAvailabilityIntervalMinutes` to `15`, `bookingThreshold` to `120`, and `price` to `0`.

For a paid type, provide `paymentPlatform` (`stripe`, `paypal`, or `tidycal`) and optionally an ISO 4217 `currencyCode`. The payment platform must already be connected in TidyCal. The result is the created booking type. `disabledAt` is present when TidyCal includes its disabled state.
