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

# ScheduleOnce API reference

> API reference for the ScheduleOnce plugin in Corsair: every `scheduleonce.api.*` operation with its input and output types, taken from the plugin's Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Booking Calendars

### book

`bookingCalendars.book`

Book an open time slot on a booking calendar for a guest, which emails the guest and host; OnceHub answers with only the new booking ID

**Risk:** `destructive`

```ts theme={null}
await corsair.scheduleonce.api.bookingCalendars.book({ id: 'BKC-LDJ878496X', start_time: '2026-12-02T06:30:00Z', guest_time_zone: 'America/New_York', booking_form: { name: 'Dana Reed', email: 'dana.reed@example.com' }, location: { type: 'virtual', value: 'google_meet' } });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking calendar ID, such as BKC-LDJ878496X. |
| `start_time` | `string` | Yes | The date and time of the time slot, such as 2024-12-02T06:30:00Z. |
| `guest_time_zone` | `string` | Yes | The guest's IANA time zone, such as America/New\_York. |
| `booking_form` | `object` | Yes | Information about the guest; custom question keys use the question's `mapped_field_name`. |
| `location` | `object` | No | Where to meet. Omitted, a virtual location is selected. |
| `duration` | `number` | No | Meeting length in minutes; must be one of the durations set on the booking calendar. Defaults to the calendar's default duration. |

Books an open slot and answers with only the new booking ID; read the full booking back with `bookings.get`. `location.type` takes `physical`, `virtual`, `virtual_static` or `guest_phone`, and its `value` differs per type: a provider name such as `google_meet` for virtual, a phone number in E.164 for calls, an address ID for in-person.

> [accordion] booking\_form full type
>
> ```ts theme={null}
> {
>   name: string,
>   email: string,
>   phone?: string,
>   string_custom_field?: string,
>   array_custom_field?: string[]
> }
> ```

> [accordion] location full type
>
> ```ts theme={null}
> {
>   type: physical | virtual | virtual_static | guest_phone,
>   value?: string | null
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The created booking ID, such as BKNG-J4FR05BKEWEX. |

***

### get

`bookingCalendars.get`

Fetch one booking calendar by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.bookingCalendars.get({ id: 'BKC-LDJ878496X' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking calendar ID, such as BKC-LDJ878496X. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `host` | `string \| null` | No | — |
| `url` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `published` | `boolean \| null` | No | — |
| `duration_minutes` | `number \| null` | No | — |

***

### list

`bookingCalendars.list`

List booking calendars with their hosts, URLs and durations, optionally filtered by host

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.bookingCalendars.list({ host: 'USR-FSD423423', limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `host` | `string` | No | Only calendars hosted by this user ID. |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   object?: string | null,
>   id?: string | null,
>   subject?: string | null,
>   host?: string | null,
>   url?: string | null,
>   name?: string | null,
>   published?: boolean | null,
>   duration_minutes?: number | null
> }[]
> ```

***

### oneTimeLink

`bookingCalendars.oneTimeLink`

Create a single-use booking link for a booking calendar; the URL is a credential, so store it carefully

**Risk:** `write`

```ts theme={null}
await corsair.scheduleonce.api.bookingCalendars.oneTimeLink({ id: 'BKC-LDJ878496X', hide_url_params: true, booking_form: { name: 'Dana Reed', email: 'dana.reed@example.com' } });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking calendar ID, such as BKC-LDJ878496X. |
| `hide_url_params` | `boolean` | No | True generates a short one-time link with no visible query parameters. Defaults to false. |
| `booking_form` | `object` | No | Prefilled guest information. |
| `utm_params` | `object \| string` | No | Values for the 5 standard UTM parameters (source, medium, campaign, term, content). Sent unchanged. |
| `booking_settings` | `object` | No | Booking calendar settings applied when the link is used. |

The returned `url` is a single-use credential: whoever holds it can book that calendar once without signing in. Deliver it to the guest rather than logging it. `hide_url_params: true` returns a short link with no visible query parameters.

> [accordion] booking\_form full type
>
> ```ts theme={null}
> {
>   name?: string,
>   email?: string,
>   phone?: string,
>   string_custom_field?: string,
>   array_custom_field?: string
> }
> ```

> [accordion] utm\_params full type
>
> ```ts theme={null}
> {
>   source?: string,
>   medium?: string,
>   campaign?: string,
>   term?: string,
>   content?: string
> } | string
> ```

> [accordion] booking\_settings full type
>
> ```ts theme={null}
> {
>   host?: string,
>   co_hosts?: string,
>   duration_minutes?: number,
>   skip?: string[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `url` | `string \| null` | No | The single-use booking URL. Treat it as a credential. |
| `creation_time` | `string \| null` | No | — |

***

### timeSlots

`bookingCalendars.timeSlots`

List the open time slots of a booking calendar between a start and end instant

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.bookingCalendars.timeSlots({ id: 'BKC-LDJ878496X', start_time: '2026-12-02T06:30:00Z', end_time: '2026-12-06T20:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking calendar ID, such as BKC-LDJ878496X. |
| `start_time` | `string` | No | Earliest slot to return, such as 2024-12-02T06:30:00Z. |
| `end_time` | `string` | No | Latest slot to return, such as 2024-12-06T20:00:00Z. |
| `duration` | `number` | No | Meeting length in minutes; must be one of the durations set on the booking calendar. Defaults to the calendar's default duration. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   start_time?: string | null,
>   locations?: {
>     type?: string | null,
>     value?: string | null,
>     id?: string | null
>   }[] | null
> }[]
> ```

***

## Booking Pages

### get

`bookingPages.get`

Fetch one booking page by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.bookingPages.get({ id: 'BP-X0LCRU5LES' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking page ID, such as BP-3F7JAWT4UA. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `label` | `string \| null` | No | — |
| `url` | `string \| null` | No | — |
| `active` | `boolean \| null` | No | — |
| `timezone` | `string \| null` | No | — |

***

### list

`bookingPages.list`

List booking pages, optionally filtered by master page, event type or owner, plus paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.bookingPages.list({ master_page: 'MP-ZID28U5946', limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `master_page` | `string` | No | Only pages on this master page ID. |
| `event_type` | `string` | No | Only pages offering this event type ID. |
| `user` | `string` | No | Only pages owned by this user ID. |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null,
>   label?: string | null,
>   url?: string | null,
>   active?: boolean | null,
>   timezone?: string | null
> }[]
> ```

***

## Bookings

### cancel

`bookings.cancel`

Cancel a booking, optionally emailing the guest; OnceHub has no undo, so the meeting must be rebooked

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.scheduleonce.api.bookings.cancel({ id: 'BKNG-J4FR05BKEWEX', cancellation_reason: 'Scheduling conflict', send_cancellation_email: true });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking ID, such as BKNG-J4FR05BKEWEX. |
| `cancellation_reason` | `string` | No | Reason for cancelling the meeting. |
| `send_cancellation_email` | `boolean` | No | Whether a cancellation email should be sent. Defaults to true. |

Destructive and irreversible: OnceHub has no un-cancel call, so the meeting must be booked again. `send_cancellation_email` defaults to true.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `tracking_id` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `starting_time` | `string \| null` | No | — |
| `customer_timezone` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `owner` | `string \| Record<string, any> \| null` | No | — |
| `duration_minutes` | `number \| null` | No | — |
| `virtual_conferencing` | `object \| null` | No | — |
| `location_description` | `string \| null` | No | — |
| `rescheduled_booking_id` | `string \| null` | No | — |
| `cancel_reschedule_information` | `object \| null` | No | — |
| `attendees` | `string[] \| null` | No | — |
| `form_submission` | `object \| null` | No | — |
| `booking_page` | `string \| Record<string, any> \| null` | No | — |
| `master_page` | `string \| Record<string, any> \| null` | No | — |
| `event_type` | `string \| Record<string, any> \| null` | No | — |
| `external_calendar` | `object \| null` | No | — |
| `utm_params` | `object \| null` | No | — |
| `contact` | `string \| Record<string, any> \| null` | No | — |
| `booking_calendar` | `string \| Record<string, any> \| null` | No | — |
| `conversation` | `string \| Record<string, any> \| null` | No | — |
| `in_trash` | `boolean \| null` | No | — |
| `ics_url` | `string \| null` | No | — |
| `cancel_url` | `string \| null` | No | — |
| `reschedule_url` | `string \| null` | No | — |
| `cancel_reschedule_url` | `string \| null` | No | — |
| `payment_information` | `Record<string, any> \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] virtual\_conferencing full type
>
> ```ts theme={null}
> {
>   join_url?: string | null
> } | null
> ```

> [accordion] cancel\_reschedule\_information full type
>
> ```ts theme={null}
> {
>   reason?: string | null,
>   actioned_by?: string | null,
>   user_id?: string | null
> } | null
> ```

> [accordion] form\_submission full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   phone?: any | null,
>   mobile_phone?: string | null,
>   note?: string | null,
>   company?: any | null,
>   guests?: any[] | null,
>   custom_fields?: {
>     name?: string | null,
>     value?: any | null
>   }[] | null
> } | null
> ```

> [accordion] external\_calendar full type
>
> ```ts theme={null}
> {
>   type?: string | null,
>   name?: string | null,
>   id?: string | null,
>   event_id?: string | null
> } | null
> ```

> [accordion] utm\_params full type
>
> ```ts theme={null}
> {
>   source?: string | null,
>   medium?: string | null,
>   campaign?: any | null,
>   term?: any | null,
>   content?: any | null
> } | null
> ```

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

### get

`bookings.get`

Fetch one booking by ID, optionally expanding its owner, contact or conversation

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.bookings.get({ id: 'BKNG-J4FR05BKEWEX', expand: 'owner,contact' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking ID, such as BKNG-J4FR05BKEWEX. |
| `expand` | `string` | No | Objects to expand, comma-separated: `owner`, `contact` and/or `conversation` (OnceHub answers 400 for any other field). Lists take the same names, with no `data.` prefix. |

Pass `expand` with `owner`, `contact` and/or `conversation` (comma-separated) to embed those objects in the answer; OnceHub answers 400 for any other field.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `tracking_id` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `starting_time` | `string \| null` | No | — |
| `customer_timezone` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `owner` | `string \| Record<string, any> \| null` | No | — |
| `duration_minutes` | `number \| null` | No | — |
| `virtual_conferencing` | `object \| null` | No | — |
| `location_description` | `string \| null` | No | — |
| `rescheduled_booking_id` | `string \| null` | No | — |
| `cancel_reschedule_information` | `object \| null` | No | — |
| `attendees` | `string[] \| null` | No | — |
| `form_submission` | `object \| null` | No | — |
| `booking_page` | `string \| Record<string, any> \| null` | No | — |
| `master_page` | `string \| Record<string, any> \| null` | No | — |
| `event_type` | `string \| Record<string, any> \| null` | No | — |
| `external_calendar` | `object \| null` | No | — |
| `utm_params` | `object \| null` | No | — |
| `contact` | `string \| Record<string, any> \| null` | No | — |
| `booking_calendar` | `string \| Record<string, any> \| null` | No | — |
| `conversation` | `string \| Record<string, any> \| null` | No | — |
| `in_trash` | `boolean \| null` | No | — |
| `ics_url` | `string \| null` | No | — |
| `cancel_url` | `string \| null` | No | — |
| `reschedule_url` | `string \| null` | No | — |
| `cancel_reschedule_url` | `string \| null` | No | — |
| `payment_information` | `Record<string, any> \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] virtual\_conferencing full type
>
> ```ts theme={null}
> {
>   join_url?: string | null
> } | null
> ```

> [accordion] cancel\_reschedule\_information full type
>
> ```ts theme={null}
> {
>   reason?: string | null,
>   actioned_by?: string | null,
>   user_id?: string | null
> } | null
> ```

> [accordion] form\_submission full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   phone?: any | null,
>   mobile_phone?: string | null,
>   note?: string | null,
>   company?: any | null,
>   guests?: any[] | null,
>   custom_fields?: {
>     name?: string | null,
>     value?: any | null
>   }[] | null
> } | null
> ```

> [accordion] external\_calendar full type
>
> ```ts theme={null}
> {
>   type?: string | null,
>   name?: string | null,
>   id?: string | null,
>   event_id?: string | null
> } | null
> ```

> [accordion] utm\_params full type
>
> ```ts theme={null}
> {
>   source?: string | null,
>   medium?: string | null,
>   campaign?: any | null,
>   term?: any | null,
>   content?: any | null
> } | null
> ```

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

### list

`bookings.list`

List bookings with filters for status, owner, contact, pages and time windows, plus paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.bookings.list({ status: 'scheduled', limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string` | No | Filter by status, such as `scheduled` or `canceled`. |
| `owner` | `string` | No | A user ID, such as USR-FSD423423. |
| `contact` | `string` | No | A contact ID, such as CTC-262WER5NR9CG38. |
| `booking_page` | `string` | No | A booking page ID, such as BP-X0LCRU5LES. |
| `master_page` | `string` | No | A master page ID, such as MP-ZID28U5946. |
| `event_type` | `string` | No | An event type ID, such as ET-7NC41GHIDZ. |
| `booking_calendar` | `string` | No | A booking calendar ID, such as BKC-03WJV0R52Z. |
| `host` | `string` | No | A user ID, such as USR-FSD423423. |
| `creation_time.gt` | `string` | No | Only bookings created after this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `creation_time.lt` | `string` | No | Only bookings created before this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `starting_time.gt` | `string` | No | Only bookings starting after this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `starting_time.lt` | `string` | No | Only bookings starting before this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `last_updated_time.gt` | `string` | No | Only bookings updated after this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `last_updated_time.lt` | `string` | No | Only bookings updated before this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `expand` | `string` | No | Objects to expand, comma-separated: `owner`, `contact` and/or `conversation` (OnceHub answers 400 for any other field). Lists take the same names, with no `data.` prefix. |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

Paging works the same on every list operation: `limit` defaults to 10 and caps at 100, `after` and `before` are mutually exclusive and take an object ID, and the answer carries `nextPageAfter`, the ID to pass as the next `after`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   object?: string | null,
>   id?: string | null,
>   tracking_id?: string | null,
>   subject?: string | null,
>   status?: string | null,
>   creation_time?: string | null,
>   starting_time?: string | null,
>   customer_timezone?: string | null,
>   last_updated_time?: string | null,
>   owner?: string | Record<string, any> | null,
>   duration_minutes?: number | null,
>   virtual_conferencing?: {
>     join_url?: string | null
>   } | null,
>   location_description?: string | null,
>   rescheduled_booking_id?: string | null,
>   cancel_reschedule_information?: {
>     reason?: string | null,
>     actioned_by?: string | null,
>     user_id?: string | null
>   } | null,
>   attendees?: string[] | null,
>   form_submission?: {
>     name?: string | null,
>     email?: string | null,
>     phone?: any | null,
>     mobile_phone?: string | null,
>     note?: string | null,
>     company?: any | null,
>     guests?: any[] | null,
>     custom_fields?: {
>       name?: string | null,
>       value?: any | null
>     }[] | null
>   } | null,
>   booking_page?: string | Record<string, any> | null,
>   master_page?: string | Record<string, any> | null,
>   event_type?: string | Record<string, any> | null,
>   external_calendar?: {
>     type?: string | null,
>     name?: string | null,
>     id?: string | null,
>     event_id?: string | null
>   } | null,
>   utm_params?: {
>     source?: string | null,
>     medium?: string | null,
>     campaign?: any | null,
>     term?: any | null,
>     content?: any | null
>   } | null,
>   contact?: string | Record<string, any> | null,
>   booking_calendar?: string | Record<string, any> | null,
>   conversation?: string | Record<string, any> | null,
>   in_trash?: boolean | null,
>   ics_url?: string | null,
>   cancel_url?: string | null,
>   reschedule_url?: string | null,
>   cancel_reschedule_url?: string | null,
>   payment_information?: Record<string, any> | null,
>   custom_fields?: {
>     name?: string | null,
>     value?: any | null
>   }[] | null
> }[]
> ```

***

### noShow

`bookings.noShow`

Mark a booking as a no-show; the flag cannot be cleared through the API

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.scheduleonce.api.bookings.noShow({ id: 'BKNG-J4FR05BKEWEX' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking ID, such as BKNG-J4FR05BKEWEX. |

Irreversible: the no-show flag cannot be cleared through the API.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `tracking_id` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `starting_time` | `string \| null` | No | — |
| `customer_timezone` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `owner` | `string \| Record<string, any> \| null` | No | — |
| `duration_minutes` | `number \| null` | No | — |
| `virtual_conferencing` | `object \| null` | No | — |
| `location_description` | `string \| null` | No | — |
| `rescheduled_booking_id` | `string \| null` | No | — |
| `cancel_reschedule_information` | `object \| null` | No | — |
| `attendees` | `string[] \| null` | No | — |
| `form_submission` | `object \| null` | No | — |
| `booking_page` | `string \| Record<string, any> \| null` | No | — |
| `master_page` | `string \| Record<string, any> \| null` | No | — |
| `event_type` | `string \| Record<string, any> \| null` | No | — |
| `external_calendar` | `object \| null` | No | — |
| `utm_params` | `object \| null` | No | — |
| `contact` | `string \| Record<string, any> \| null` | No | — |
| `booking_calendar` | `string \| Record<string, any> \| null` | No | — |
| `conversation` | `string \| Record<string, any> \| null` | No | — |
| `in_trash` | `boolean \| null` | No | — |
| `ics_url` | `string \| null` | No | — |
| `cancel_url` | `string \| null` | No | — |
| `reschedule_url` | `string \| null` | No | — |
| `cancel_reschedule_url` | `string \| null` | No | — |
| `payment_information` | `Record<string, any> \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] virtual\_conferencing full type
>
> ```ts theme={null}
> {
>   join_url?: string | null
> } | null
> ```

> [accordion] cancel\_reschedule\_information full type
>
> ```ts theme={null}
> {
>   reason?: string | null,
>   actioned_by?: string | null,
>   user_id?: string | null
> } | null
> ```

> [accordion] form\_submission full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   phone?: any | null,
>   mobile_phone?: string | null,
>   note?: string | null,
>   company?: any | null,
>   guests?: any[] | null,
>   custom_fields?: {
>     name?: string | null,
>     value?: any | null
>   }[] | null
> } | null
> ```

> [accordion] external\_calendar full type
>
> ```ts theme={null}
> {
>   type?: string | null,
>   name?: string | null,
>   id?: string | null,
>   event_id?: string | null
> } | null
> ```

> [accordion] utm\_params full type
>
> ```ts theme={null}
> {
>   source?: string | null,
>   medium?: string | null,
>   campaign?: any | null,
>   term?: any | null,
>   content?: any | null
> } | null
> ```

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

### reassign

`bookings.reassign`

Move a booking to another host; OnceHub replaces the calendar event and notifies the guest and both hosts

**Risk:** `destructive`

```ts theme={null}
await corsair.scheduleonce.api.bookings.reassign({ id: 'BKNG-J4FR05BKEWEX', new_host: 'USR-FSD423423', location: { type: 'virtual', value: 'zoom' } });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking ID, such as BKNG-J4FR05BKEWEX. |
| `new_host` | `string` | Yes | User ID of the new host: same account, an active seat, and not the current host. |
| `location` | `object` | No | Omitted, OnceHub keeps in-person and phone locations and picks the new host's video service for online ones. |

Moves the booking to `new_host`, who must hold an active seat in the same account (an invited user without a seat answers 422 "The new host requires an assigned seat."). OnceHub deletes the original calendar event, creates one for the new host and notifies the guest and both hosts. `location` can only set a `virtual` video service; omit it to keep an in-person or phone location.

> [accordion] location full type
>
> ```ts theme={null}
> {
>   type: virtual,
>   value: google_meet | microsoft_teams | webex | gotomeeting | zoom
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `tracking_id` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `starting_time` | `string \| null` | No | — |
| `customer_timezone` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `owner` | `string \| Record<string, any> \| null` | No | — |
| `duration_minutes` | `number \| null` | No | — |
| `virtual_conferencing` | `object \| null` | No | — |
| `location_description` | `string \| null` | No | — |
| `rescheduled_booking_id` | `string \| null` | No | — |
| `cancel_reschedule_information` | `object \| null` | No | — |
| `attendees` | `string[] \| null` | No | — |
| `form_submission` | `object \| null` | No | — |
| `booking_page` | `string \| Record<string, any> \| null` | No | — |
| `master_page` | `string \| Record<string, any> \| null` | No | — |
| `event_type` | `string \| Record<string, any> \| null` | No | — |
| `external_calendar` | `object \| null` | No | — |
| `utm_params` | `object \| null` | No | — |
| `contact` | `string \| Record<string, any> \| null` | No | — |
| `booking_calendar` | `string \| Record<string, any> \| null` | No | — |
| `conversation` | `string \| Record<string, any> \| null` | No | — |
| `in_trash` | `boolean \| null` | No | — |
| `ics_url` | `string \| null` | No | — |
| `cancel_url` | `string \| null` | No | — |
| `reschedule_url` | `string \| null` | No | — |
| `cancel_reschedule_url` | `string \| null` | No | — |
| `payment_information` | `Record<string, any> \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] virtual\_conferencing full type
>
> ```ts theme={null}
> {
>   join_url?: string | null
> } | null
> ```

> [accordion] cancel\_reschedule\_information full type
>
> ```ts theme={null}
> {
>   reason?: string | null,
>   actioned_by?: string | null,
>   user_id?: string | null
> } | null
> ```

> [accordion] form\_submission full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   phone?: any | null,
>   mobile_phone?: string | null,
>   note?: string | null,
>   company?: any | null,
>   guests?: any[] | null,
>   custom_fields?: {
>     name?: string | null,
>     value?: any | null
>   }[] | null
> } | null
> ```

> [accordion] external\_calendar full type
>
> ```ts theme={null}
> {
>   type?: string | null,
>   name?: string | null,
>   id?: string | null,
>   event_id?: string | null
> } | null
> ```

> [accordion] utm\_params full type
>
> ```ts theme={null}
> {
>   source?: string | null,
>   medium?: string | null,
>   campaign?: any | null,
>   term?: any | null,
>   content?: any | null
> } | null
> ```

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

### requestReschedule

`bookings.requestReschedule`

Cancel a booking and email the guest a link to pick a new time, with an optional reason they will see

**Risk:** `destructive`

```ts theme={null}
await corsair.scheduleonce.api.bookings.requestReschedule({ id: 'BKNG-J4FR05BKEWEX', reschedule_reason: 'The host is out that week' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The booking ID, such as BKNG-J4FR05BKEWEX. |
| `reschedule_reason` | `string` | No | Reason for asking the customer to reschedule the meeting. |

Cancels the booking and emails the guest a link to pick a new time; `reschedule_reason` is shown to them.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `tracking_id` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `starting_time` | `string \| null` | No | — |
| `customer_timezone` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `owner` | `string \| Record<string, any> \| null` | No | — |
| `duration_minutes` | `number \| null` | No | — |
| `virtual_conferencing` | `object \| null` | No | — |
| `location_description` | `string \| null` | No | — |
| `rescheduled_booking_id` | `string \| null` | No | — |
| `cancel_reschedule_information` | `object \| null` | No | — |
| `attendees` | `string[] \| null` | No | — |
| `form_submission` | `object \| null` | No | — |
| `booking_page` | `string \| Record<string, any> \| null` | No | — |
| `master_page` | `string \| Record<string, any> \| null` | No | — |
| `event_type` | `string \| Record<string, any> \| null` | No | — |
| `external_calendar` | `object \| null` | No | — |
| `utm_params` | `object \| null` | No | — |
| `contact` | `string \| Record<string, any> \| null` | No | — |
| `booking_calendar` | `string \| Record<string, any> \| null` | No | — |
| `conversation` | `string \| Record<string, any> \| null` | No | — |
| `in_trash` | `boolean \| null` | No | — |
| `ics_url` | `string \| null` | No | — |
| `cancel_url` | `string \| null` | No | — |
| `reschedule_url` | `string \| null` | No | — |
| `cancel_reschedule_url` | `string \| null` | No | — |
| `payment_information` | `Record<string, any> \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] virtual\_conferencing full type
>
> ```ts theme={null}
> {
>   join_url?: string | null
> } | null
> ```

> [accordion] cancel\_reschedule\_information full type
>
> ```ts theme={null}
> {
>   reason?: string | null,
>   actioned_by?: string | null,
>   user_id?: string | null
> } | null
> ```

> [accordion] form\_submission full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   phone?: any | null,
>   mobile_phone?: string | null,
>   note?: string | null,
>   company?: any | null,
>   guests?: any[] | null,
>   custom_fields?: {
>     name?: string | null,
>     value?: any | null
>   }[] | null
> } | null
> ```

> [accordion] external\_calendar full type
>
> ```ts theme={null}
> {
>   type?: string | null,
>   name?: string | null,
>   id?: string | null,
>   event_id?: string | null
> } | null
> ```

> [accordion] utm\_params full type
>
> ```ts theme={null}
> {
>   source?: string | null,
>   medium?: string | null,
>   campaign?: any | null,
>   term?: any | null,
>   content?: any | null
> } | null
> ```

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

## Contacts

### create

`contacts.create`

Create a contact with profile fields, an owner, a status and custom fields

**Risk:** `write`

```ts theme={null}
await corsair.scheduleonce.api.contacts.create({ first_name: 'Dana', last_name: 'Reed', email: 'dana.reed@example.com', company: 'Acme Corp', status: 'Qualified', owner: 'USR-FSD423423' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `first_name` | `string` | Yes | The contact's first name. |
| `last_name` | `string` | Yes | The contact's last name. |
| `email` | `string` | No | The contact's email address. |
| `phone` | `string` | No | Phone number in E.164 format. |
| `mobile_phone` | `string` | No | Mobile phone number in E.164 format. |
| `job_title` | `string` | No | — |
| `salutation` | `string` | No | — |
| `company` | `string` | No | — |
| `company_size` | `string` | No | — |
| `employees` | `string` | No | The company's employee count. |
| `street_address` | `string` | No | — |
| `city` | `string` | No | — |
| `state` | `string` | No | State or province. |
| `post_code` | `string` | No | Postal code. |
| `country` | `string` | No | — |
| `timezone` | `string` | No | — |
| `owner` | `string` | No | The ID of the user who owns the contact. |
| `status` | `Qualified \| Sales qualified \| Marketing qualified \| Disqualified` | No | Any other value is refused before the request is sent. |
| `has_consent` | `boolean \| string` | No | Whether the contact has given consent. The current docs type it as a boolean, older ones as a string; sent unchanged. |
| `terms_of_sevice` | `boolean` | No | Whether terms of service were accepted. |
| `custom_fields` | `object[]` | No | Custom fields associated with the contact. |

`status` takes `Qualified`, `Sales qualified`, `Marketing qualified` or `Disqualified`; any other value is refused before the request is sent (OnceHub itself would store it as null). `has_consent` is sent unchanged, since the OnceHub docs type it as a string. Custom fields use the question's own field name as the key. OnceHub requires at least one of `email` or `mobile_phone`: a create with neither answers 400 invalid\_request\_error, even though both fields are optional.

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string,
>   value?: any
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `last_interacted_time` | `string \| null` | No | — |
| `owner` | `string \| null` | No | — |
| `first_name` | `string \| null` | No | — |
| `last_name` | `string \| null` | No | — |
| `email` | `string \| null` | No | — |
| `phone` | `string \| null` | No | — |
| `mobile_phone` | `string \| null` | No | — |
| `job_title` | `string \| null` | No | — |
| `salutation` | `string \| null` | No | — |
| `company` | `string \| null` | No | — |
| `company_size` | `string \| null` | No | — |
| `employees` | `string \| number \| null` | No | — |
| `street_address` | `string \| null` | No | — |
| `city` | `string \| null` | No | — |
| `state` | `string \| null` | No | — |
| `post_code` | `string \| null` | No | — |
| `country` | `string \| null` | No | — |
| `timezone` | `string \| null` | No | — |
| `has_consent` | `boolean \| null` | No | — |
| `terms_of_sevice` | `boolean \| null` | No | — |
| `status` | `string \| null` | No | — |
| `source` | `string \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

### delete

`contacts.delete`

Remove a contact; OnceHub redacts the record and reports deleted: true

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.scheduleonce.api.contacts.delete({ id: 'CTC-J4FR05BKEW' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The contact ID, such as CTC-J4FR05BKEW. |

The API answers 204 with no body; a 2xx response means the contact was deleted, and Corsair reports `deleted: true`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `deleted` | `boolean \| null` | No | — |

***

### get

`contacts.get`

Fetch one contact by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.contacts.get({ id: 'CTC-J4FR05BKEW' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The contact ID, such as CTC-J4FR05BKEW. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `last_interacted_time` | `string \| null` | No | — |
| `owner` | `string \| null` | No | — |
| `first_name` | `string \| null` | No | — |
| `last_name` | `string \| null` | No | — |
| `email` | `string \| null` | No | — |
| `phone` | `string \| null` | No | — |
| `mobile_phone` | `string \| null` | No | — |
| `job_title` | `string \| null` | No | — |
| `salutation` | `string \| null` | No | — |
| `company` | `string \| null` | No | — |
| `company_size` | `string \| null` | No | — |
| `employees` | `string \| number \| null` | No | — |
| `street_address` | `string \| null` | No | — |
| `city` | `string \| null` | No | — |
| `state` | `string \| null` | No | — |
| `post_code` | `string \| null` | No | — |
| `country` | `string \| null` | No | — |
| `timezone` | `string \| null` | No | — |
| `has_consent` | `boolean \| null` | No | — |
| `terms_of_sevice` | `boolean \| null` | No | — |
| `status` | `string \| null` | No | — |
| `source` | `string \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

### list

`contacts.list`

List contacts with filters for email and time windows, plus paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.contacts.list({ email: 'dana.reed@example.com' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `email` | `string` | No | Only the contact with this email. |
| `creation_time.gt` | `string` | No | Only contacts created after this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `creation_time.lt` | `string` | No | Only contacts created before this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `last_updated_time.gt` | `string` | No | Only contacts updated after this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `last_updated_time.lt` | `string` | No | Only contacts updated before this time: YYYY-MM-DD or an ISO 8601 timestamp. |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   object?: string | null,
>   id?: string | null,
>   creation_time?: string | null,
>   last_updated_time?: string | null,
>   last_interacted_time?: string | null,
>   owner?: string | null,
>   first_name?: string | null,
>   last_name?: string | null,
>   email?: string | null,
>   phone?: string | null,
>   mobile_phone?: string | null,
>   job_title?: string | null,
>   salutation?: string | null,
>   company?: string | null,
>   company_size?: string | null,
>   employees?: string | number | null,
>   street_address?: string | null,
>   city?: string | null,
>   state?: string | null,
>   post_code?: string | null,
>   country?: string | null,
>   timezone?: string | null,
>   has_consent?: boolean | null,
>   terms_of_sevice?: boolean | null,
>   status?: string | null,
>   source?: string | null,
>   custom_fields?: {
>     name?: string | null,
>     value?: any | null
>   }[] | null
> }[]
> ```

***

### update

`contacts.update`

Change contact fields, owner, status or custom fields; email and mobile phone cannot change

**Risk:** `write`

```ts theme={null}
await corsair.scheduleonce.api.contacts.update({ id: 'CTC-J4FR05BKEW', company: 'Acme Corp', status: 'Sales qualified' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The contact ID, such as CTC-J4FR05BKEW. |
| `first_name` | `string` | No | — |
| `last_name` | `string` | No | — |
| `owner` | `string` | No | The ID of the user who owns the contact. |
| `status` | `Qualified \| Sales qualified \| Marketing qualified \| Disqualified` | No | Any other value is refused before the request is sent. |
| `phone` | `string` | No | Phone number in E.164 format. |
| `job_title` | `string` | No | — |
| `salutation` | `string` | No | — |
| `company` | `string` | No | — |
| `company_size` | `string` | No | — |
| `employees` | `number` | No | — |
| `street_address` | `string` | No | — |
| `city` | `string` | No | — |
| `state` | `string` | No | State or province. |
| `post_code` | `string` | No | Postal code. |
| `country` | `string` | No | — |
| `timezone` | `string` | No | — |
| `has_consent` | `boolean` | No | — |
| `terms_of_sevice` | `boolean` | No | Whether terms of service were accepted (OnceHub spells it this way). |
| `custom_fields` | `object[]` | No | Only the custom fields given are changed. |

Only the fields given change, and at least one is required. `email` and `mobile_phone` identify the contact and cannot be changed here.

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string,
>   value?: any
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `last_updated_time` | `string \| null` | No | — |
| `last_interacted_time` | `string \| null` | No | — |
| `owner` | `string \| null` | No | — |
| `first_name` | `string \| null` | No | — |
| `last_name` | `string \| null` | No | — |
| `email` | `string \| null` | No | — |
| `phone` | `string \| null` | No | — |
| `mobile_phone` | `string \| null` | No | — |
| `job_title` | `string \| null` | No | — |
| `salutation` | `string \| null` | No | — |
| `company` | `string \| null` | No | — |
| `company_size` | `string \| null` | No | — |
| `employees` | `string \| number \| null` | No | — |
| `street_address` | `string \| null` | No | — |
| `city` | `string \| null` | No | — |
| `state` | `string \| null` | No | — |
| `post_code` | `string \| null` | No | — |
| `country` | `string \| null` | No | — |
| `timezone` | `string \| null` | No | — |
| `has_consent` | `boolean \| null` | No | — |
| `terms_of_sevice` | `boolean \| null` | No | — |
| `status` | `string \| null` | No | — |
| `source` | `string \| null` | No | — |
| `custom_fields` | `object[] \| null` | No | — |

> [accordion] custom\_fields full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: any | null
> }[] | null
> ```

***

## Event Types

### get

`eventTypes.get`

Fetch one event type by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.eventTypes.get({ id: 'ET-7NC41GHIDZ' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The event type ID, such as ET-7I7PKDTFJS. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `description` | `string \| null` | No | — |

***

### list

`eventTypes.list`

List the event types the account offers, with paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.eventTypes.list({ limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null,
>   description?: string | null
> }[]
> ```

***

## Master Pages

### get

`masterPages.get`

Fetch one master page by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.masterPages.get({ id: 'MP-ZID28U5946' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The master page ID, such as MP-73E6RHFU77. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `label` | `string \| null` | No | — |
| `url` | `string \| null` | No | — |
| `active` | `boolean \| null` | No | — |

***

### list

`masterPages.list`

List the master pages the account offers, with paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.masterPages.list({ limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null,
>   label?: string | null,
>   url?: string | null,
>   active?: boolean | null
> }[]
> ```

***

### oneTimeLink

`masterPages.oneTimeLink`

Create a single-use booking link for a master page; the URL is a credential, so store it carefully

**Risk:** `write`

```ts theme={null}
await corsair.scheduleonce.api.masterPages.oneTimeLink({ id: 'MP-ZID28U5946' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The master page ID, such as MP-73E6RHFU77. |

Same as the booking-calendar one-time link: a single-use booking URL, so treat it as a credential.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `url` | `string \| null` | No | The single-use booking URL. Treat it as a credential. |
| `creation_time` | `string \| null` | No | — |

***

## Sms Notifications

### list

`smsNotifications.list`

List SMS notifications the account sent, filtered by recipient or time, with paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.smsNotifications.list({ recipient_type: 'contact', expand: 'recipient', limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `recipient` | `string` | No | Only SMS sent to this contact or user ID. |
| `recipient_type` | `contact \| user` | No | Only SMS sent to contacts or to users. |
| `creation_time.gt` | `string` | No | Only SMS created after this time, such as 2026-12-01T00:00:00Z. |
| `creation_time.lt` | `string` | No | Only SMS created before this time. |
| `expand` | `string` | No | `recipient` embeds the full contact or user. |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

Lists SMS notifications the account sent. `recipient` is a contact or user ID, or the whole object with `expand: recipient`. `creation_time.gt` and `creation_time.lt` take full ISO date-times.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   object?: string | null,
>   id?: string | null,
>   type?: string | null,
>   status?: string | null,
>   creation_time?: string | null,
>   recipient?: string | Record<string, any> | null,
>   recipient_type?: string | null,
>   details?: Record<string, any> | null
> }[]
> ```

***

## Teams

### get

`teams.get`

Fetch one ScheduleOnce team by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.teams.get({ id: 'TM-GCJU8DLBTPY1' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The team ID, such as TM-GCJU8DLBTPY1. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |

***

### list

`teams.list`

List teams, optionally filtered by the teams that include one user

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.teams.list({ user: 'USR-FSD423423' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `user` | `string` | No | Only teams that include this user ID. |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   object?: string | null,
>   id?: string | null,
>   name?: string | null
> }[]
> ```

***

## Test

### validateKey

`test.validateKey`

Validate the API key; the response message names the account the key belongs to

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.test.validateKey({});
```

**Input:** *empty object*

The cheapest way to check a key: a valid key answers with a message naming the account it belongs to. The OnceHub API is Enterprise-plan only, so a key from a lower plan answers 403 here too. Every operation authenticates with an `API-Key` header, and an account may send 5 requests per second.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `message` | `string` | Yes | Confirms the key works and names the account, such as "The API key is valid for account: [admin@example.com](mailto:admin@example.com)". |

***

## Users

### create

`users.create`

Invite a user to the account by email, with a role and optional teams; the invite is emailed and the user may take a paid seat

**Risk:** `destructive`

```ts theme={null}
await corsair.scheduleonce.api.users.create({ email: 'jordan.lee@example.com', first_name: 'Jordan', last_name: 'Lee', role_name: 'Member', teams: ['TM-GCJU8DLBTPY1'] });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `email` | `string` | Yes | The new user's email address. |
| `first_name` | `string` | Yes | The new user's first name. |
| `last_name` | `string` | Yes | The new user's last name. |
| `role_name` | `Administrator \| Member \| Team Manager` | No | Defaults to `Member`. |
| `teams` | `string[]` | No | Team IDs to add the user to; each team must exist. |

`role_name` takes `Administrator`, `Member` or `Team Manager` and defaults to `Member`. Each team ID given must already exist.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `first_name` | `string \| null` | No | — |
| `last_name` | `string \| null` | No | — |
| `email` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `role_name` | `string \| null` | No | — |
| `teams` | `string[] \| null` | No | — |
| `timezone` | `string \| null` | No | — |

***

### delete

`users.delete`

Remove a user from the account; OnceHub redacts the record and reports deleted: true

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.scheduleonce.api.users.delete({ id: 'USR-FSD423423' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The user ID, such as USR-FSD423423. |

The API answers 204 with no body; a 2xx response means the user was deleted, and Corsair reports `deleted: true`. There is no restore call.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `deleted` | `boolean \| null` | No | — |

***

### get

`users.get`

Fetch one ScheduleOnce user by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.users.get({ id: 'USR-FSD423423' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The user ID, such as USR-FSD423423. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `first_name` | `string \| null` | No | — |
| `last_name` | `string \| null` | No | — |
| `email` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `role_name` | `string \| null` | No | — |
| `teams` | `string[] \| null` | No | — |
| `timezone` | `string \| null` | No | — |

***

### getAvailability

`users.getAvailability`

Read the weekly scheduling availability and date overrides of one user

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.users.getAvailability({ id: 'USR-FSD423423' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The user ID, such as USR-FSD423423. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `timezone` | `string \| null` | No | — |
| `weekly` | `object[] \| null` | No | — |
| `overrides` | `object[] \| null` | No | — |

> [accordion] weekly full type
>
> ```ts theme={null}
> {
>   day?: string | null,
>   working_hours?: {
>     start_time?: string | null,
>     end_time?: string | null,
>     locations?: {
>       type?: string | null,
>       id?: string | null,
>       value?: string | null
>     }[] | null
>   }[] | null
> }[] | null
> ```

> [accordion] overrides full type
>
> ```ts theme={null}
> {
>   date?: string | null,
>   day?: string | null,
>   working_hours?: {
>     start_time?: string | null,
>     end_time?: string | null,
>     locations?: {
>       type?: string | null,
>       id?: string | null,
>       value?: string | null
>     }[] | null
>   }[] | null
> }[] | null
> ```

***

### list

`users.list`

List account users, optionally filtered by email, with paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.users.list({ email: 'jordan.lee@example.com' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `email` | `string` | No | Only the user with this email. |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   first_name?: string | null,
>   last_name?: string | null,
>   email?: string | null,
>   status?: string | null,
>   role_name?: string | null,
>   teams?: string[] | null,
>   timezone?: string | null
> }[]
> ```

***

### update

`users.update`

Update the name, role or team memberships of one user

**Risk:** `write`

```ts theme={null}
await corsair.scheduleonce.api.users.update({ id: 'USR-FSD423423', first_name: 'Jordan', role_name: 'Team Manager' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The user ID, such as USR-FSD423423. |
| `first_name` | `string` | No | — |
| `last_name` | `string` | No | — |
| `role_name` | `Administrator \| Member \| Team Manager` | No | The new role; when omitted the role stays as it is. |
| `teams` | `string[]` | No | Team IDs to add the user to; each team must exist. |

Only the fields given are changed; `role_name` takes `Administrator`, `Member` or `Team Manager`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `first_name` | `string \| null` | No | — |
| `last_name` | `string \| null` | No | — |
| `email` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `role_name` | `string \| null` | No | — |
| `teams` | `string[] \| null` | No | — |
| `timezone` | `string \| null` | No | — |

***

### updateAvailability

`users.updateAvailability`

Overwrite the weekly availability or date overrides of one user with the given time slots

**Risk:** `write`

```ts theme={null}
await corsair.scheduleonce.api.users.updateAvailability({ id: 'USR-FSD423423', weekly: [{ day: 'Monday', working_hours: [{ start_time: '09:00', end_time: '17:00', locations: [{ type: 'online_dynamic_link' }] }] }] });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The user ID, such as USR-FSD423423. |
| `weekly` | `object[]` | No | Full availability per weekday; each day given is completely overwritten. |
| `overrides` | `object[]` | No | Exceptions for specific dates; each date given is completely overwritten. |

Each weekday or date given is completely overwritten, so send the user's full weekly plan, not a delta. Times are `HH:MM` on a 15-minute mark, slots in one day must not overlap, duplicate location types within one slot are rejected, and a slot cannot mix `online_dynamic_link` with `online_static_link`. An empty `working_hours` array clears a day; `null` in `overrides` deletes a date override.

> [accordion] weekly full type
>
> ```ts theme={null}
> {
>   day: Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday,
>   working_hours: {
>     start_time: string,
>     end_time: string,
>     locations: {
>       type?: in_person_by_host | in_person_by_guest | online_dynamic_link | online_static_link | phone_by_guest | null,
>       id?: string | null,
>       value?: string | null
>     }[]
>   }[]
> }[]
> ```

> [accordion] overrides full type
>
> ```ts theme={null}
> {
>   date: string,
>   working_hours: {
>     start_time: string,
>     end_time: string,
>     locations: {
>       type?: in_person_by_host | in_person_by_guest | online_dynamic_link | online_static_link | phone_by_guest | null,
>       id?: string | null,
>       value?: string | null
>     }[]
>   }[] | null
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `timezone` | `string \| null` | No | — |
| `weekly` | `object[] \| null` | No | — |
| `overrides` | `object[] \| null` | No | — |

> [accordion] weekly full type
>
> ```ts theme={null}
> {
>   day?: string | null,
>   working_hours?: {
>     start_time?: string | null,
>     end_time?: string | null,
>     locations?: {
>       type?: string | null,
>       id?: string | null,
>       value?: string | null
>     }[] | null
>   }[] | null
> }[] | null
> ```

> [accordion] overrides full type
>
> ```ts theme={null}
> {
>   date?: string | null,
>   day?: string | null,
>   working_hours?: {
>     start_time?: string | null,
>     end_time?: string | null,
>     locations?: {
>       type?: string | null,
>       id?: string | null,
>       value?: string | null
>     }[] | null
>   }[] | null
> }[] | null
> ```

***

## Webhooks

### create

`webhooks.create`

Register a webhook URL that receives OnceHub event POSTs; the response carries the signing secret

**Risk:** `write`

```ts theme={null}
await corsair.scheduleonce.api.webhooks.create({ url: 'https://myapp.com/webhooks/scheduleonce', name: 'booking-events', events: ['booking.scheduled', 'booking.canceled'] });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | URL that receives the POST messages from OnceHub. |
| `name` | `string` | No | A unique reference name, only used by you. |
| `events` | `string[]` | No | Trigger types, such as `booking.scheduled` or `booking.canceled`. |

The response carries this webhook's signing secret as `secret` (`webhooks.get` and `webhooks.list` return it too). Store it with `webhookSecret` or `set_webhook_signature`. A name already in use answers 409. `events` takes trigger types such as `booking.scheduled` or `conversation.started`. Deliveries are signed with HMAC-SHA256 over `<t>.<raw body>` in the `Oncehub-Signature` header and are rejected outside a 300-second window.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `api_version` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `url` | `string \| null` | No | — |
| `events` | `string[] \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `status` | `boolean \| number \| null` | No | — |
| `secret` | `string \| null` | No | The signing secret for Oncehub-Signature checks. Treat it as a credential. |
| `signing_secret` | `string \| null` | No | The webhook signing secret (the signature docs name it `signing_secret`). |

***

### delete

`webhooks.delete`

Remove a registered webhook so it stops receiving OnceHub event POSTs

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.scheduleonce.api.webhooks.delete({ id: 'WHK-7JD9LBVZTQ' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The webhook ID, such as WHK-7JD9LBVZTQ. |

The API answers 204 with no body; a 2xx response means the webhook was deleted, and Corsair reports `deleted: true`.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `deleted` | `boolean \| null` | No | — |

***

### get

`webhooks.get`

Fetch one registered webhook by ID

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.webhooks.get({ id: 'WHK-7JD9LBVZTQ' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The webhook ID, such as WHK-7JD9LBVZTQ. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `api_version` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `url` | `string \| null` | No | — |
| `events` | `string[] \| null` | No | — |
| `creation_time` | `string \| null` | No | — |
| `status` | `boolean \| number \| null` | No | — |
| `secret` | `string \| null` | No | The signing secret for Oncehub-Signature checks. Treat it as a credential. |

***

### list

`webhooks.list`

List the registered webhooks, with paging

**Risk:** `read`

```ts theme={null}
await corsair.scheduleonce.api.webhooks.list({ limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | Defaults to 10. |
| `after` | `string` | No | List results after this object ID. |
| `before` | `string` | No | List results before this object ID. Cannot be combined with `after`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `object` | `list` | Yes | — |
| `data` | `object[]` | Yes | — |
| `nextPageAfter` | `string \| null` | Yes | The `after` cursor for the next page, from the last item's ID; null when this page is empty. |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   object?: string | null,
>   id?: string | null,
>   api_version?: string | null,
>   name?: string | null,
>   url?: string | null,
>   events?: string[] | null,
>   creation_time?: string | null,
>   status?: boolean | number | null,
>   secret?: string | null
> }[]
> ```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.