> ## 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 single-use scheduling link

> Create a one-time Calendly booking URL for an event type.

`calendly.createSingleUseSchedulingLink` creates a URL that can book exactly one event. Unused links expire after 90 days.

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

export default automation("Create Calendly scheduling link", () => {
  onDashboardRun({ title: "Create scheduling link" })
  const link = calendly.createSingleUseSchedulingLink({
    owner: "https://api.calendly.com/event_types/event-type-id",
  })
  sendEmail({
    to: "invitee@example.com",
    subject: "Choose a meeting time",
    text: link.bookingUrl,
  })
})
```

`ownerType` defaults to `EventType` and `maxEventCount` defaults to `1`; those are the only values Calendly currently supports. Link creation is not replay-safe.
