> ## 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 team booking type

> Creates a scheduling page for a TidyCal team.

`tidyCal.createTeamBookingType` creates a booking type owned by one team.

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

export default automation("Create TidyCal team booking type", () => {
  onDashboardRun({ title: "Create TidyCal team booking type" })
  tidyCal.createTeamBookingType({
    teamId: 123,
    title: "Sales consultation",
    description: "Meet with our sales team.",
    durationMinutes: 30,
    urlSlug: "sales-consultation",
  })
})
```

Team actions require an Agency or Pro plan. `teamId`, `title`, `description`, `durationMinutes`, and `urlSlug` are required. All other pricing, availability, capacity, privacy, and redirect inputs match `createBookingType`, including its defaults. The connected account must have permission to create booking types for the team.
