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

# Get booking references

> Retrieves provider references attached to one booking.

`calcom.getBookingReferences` retrieves provider references attached to one booking.

```ts automations/get-booking-references.automation.ts theme={null}
import { automation, markSignificant } from "automate.ax"
import { calcom } from "automate.ax/calcom"

export default automation("Get booking references", () => {
  markSignificant(
    calcom.getBookingReferences({
      bookingUid: "booking-uid",
      type: "google_calendar",
    }),
  )
})
```

## Input

Pass these fields:

| Field        | Type                                                                                                                | Required | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
| `bookingUid` | `string`                                                                                                            | Yes      | —           |
| `type`       | `"google_calendar" \| "office365_calendar" \| "daily_video" \| "google_video" \| "office365_video" \| "zoom_video"` | No       | —           |

## Output

Returns an array. Each item has these fields:

| Field                   | Type             | Required | Description                       |
| ----------------------- | ---------------- | -------- | --------------------------------- |
| `type`                  | `string`         | Yes      | The type of the booking reference |
| `eventUid`              | `string`         | Yes      | The event uid of the booking      |
| `destinationCalendarId` | `string \| null` | Yes      | —                                 |
| `id`                    | `number`         | Yes      | The id of the booking reference   |

Cal.com enforces account role, plan, and availability requirements. Provider rejections surface as structured action failures with the HTTP status and any `Retry-After` delay.
