> ## 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 event type

> Create a one-on-one Calendly event type for a user.

`calendly.createEventType` creates a reusable one-on-one event type owned by a Calendly user.

```ts automations/create-calendly-event-type.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("Create Calendly event type", () => {
  onDashboardRun({ title: "Create event type" })
  const eventType = calendly.createEventType({
    name: "Customer onboarding",
    owner: "https://api.calendly.com/users/user-id",
    duration: 45,
    locations: [{ kind: "zoom_conference" }],
  })
  sendEmail({ subject: "Event type created", text: eventType.schedulingUrl })
})
```

`name` and the owner's complete `owner` URI are required. You can also set its active state, description, duration, duration options, locale, color, and locations. Supply at most four unique `durationOptions`; when you also set `duration`, include it among those options. Creation is not replay-safe.
