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

# roark connections calendar create

> Connect a calendar account

Verifies the credential against the provider and, only if it works, stores it encrypted. A credential the provider rejects is a 400 and no connection is created: a connection that has never worked would next be exercised by an inbound call at 2am, with nobody there to fix it.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark connections calendar create [options]
```

> [!NOTE]
>
> Calls `POST /v1/connections/calendar`

## Options

**--provider** `string` *required*

Who holds the calendar. `CAL_COM` and `GO_HIGH_LEVEL` are connected with a key, `GO_HIGH_LEVEL` also needing the sub-account the key belongs to; GOOGLE and CALENDLY are connected by consent, through `POST /v1/connections/calendar/google/authorize-url` and `POST /v1/connections/calendar/calendly/authorize-url`. One of `CAL_COM`, `GOOGLE`, `CALENDLY`, `GO_HIGH_LEVEL`

**--label** `string` *required*

Customer-facing name for this account, unique within the project. Required.

**--api-key** `string` *required*

The provider account’s API key. For `CAL_COM`, a Cal.com API key (starts with `cal_`). For `GO_HIGH_LEVEL`, a sub-account Private Integration Token, which must carry the `calendars.readonly`, `calendars/events.readonly`, `calendars/events.write`, `contacts.readonly`, `contacts.write` and `locations.readonly` scopes. It is verified against the provider before anything is stored, so an invalid key is a 400 and no connection is created. Stored encrypted and never returned.

**--go-high-level-location** `string`

Required for `GO_HIGH_LEVEL` and ignored by every other provider: the sub-account the token belongs to, for example `ve9EPM428h8vShlRW1KT`. A Private Integration Token does not name its own sub-account and every calendar call needs one, so the two are stored and verified together: a token minted in a different sub-account is a 400.

**--timezone** `string`

The named IANA timezone to offer slots in, for example `America/Los_Angeles`. Omit to adopt the provider account’s own timezone. A fixed offset such as `-08:00` is rejected: it does not observe DST.

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark connections calendar create --provider <value> --label <value> --api-key <value>
```

Every command also takes the [global options](https://docs.roark.ai/cli-reference/overview.md#global-options) and sets one
of the [exit codes](https://docs.roark.ai/cli-reference/overview.md#exit-codes).


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