# Connect receptionist calendar

> Connects the account's cal.com calendar with a cal.com API key you supply, for example one key per member or the key of your shared cal.com. Replaces a key…

`PUT /v2/api/partner/accounts/{id}/numbers/{number}/receptionist/calendar`

<Note>
**Required scope:** `PARTNER`
</Note>

Connects the account's cal.com calendar with a cal.com API key, so the receptionist can book appointments. You supply the key: give each member its own key, or the key of your shared cal.com. The response returns the calendar, in the same shape as [Get a calendar](/docs/agent/get-calendar), with its `available_event_types`.

```json
{
  "api_key": "cal_live_..."
}
```

- The calendar belongs to the account, not to one number: every number of the account books on it.
- Connecting a calendar again replaces the key connected before. If the new key fails, no calendar stays connected.

## Choose what the receptionist books

Connecting a calendar does not make the receptionist book on it. Pick the event types it books with [Update receptionist](/docs/white-label/update-receptionist): send `scheduling.calendars`, keyed by the calendar `id`, with the event types to use.

```json
{
  "scheduling": {
    "calendars": {
      "<calendar id>": ["<event type>"]
    }
  }
}
```

## Errors

| Code | What it means |
|------|---------------|
| `MISSING_FIELD` | `api_key` is missing (`400`). |
| `RECEPTIONIST_NOT_ACTIVE` | The receptionist is not activated on this number (`409`). [Activate it](/docs/white-label/activate-receptionist) first. |
| `CALENDAR_API_KEY_REJECTED` | The calendar provider refused the key, or could not be reached to check it (`422`). No calendar is connected. Check the key, then send it again. |
| `CALENDAR_UNAVAILABLE` | The calendar provider could not be reached (`502`). Retry in a few seconds. |
| `PARTNER_ACCOUNT_NOT_FOUND` | No account with this id was created by your API key, or the account is deactivated (`404`). |
| `PHONE_NUMBER_NOT_FOUND` | The number is not on this account (`404`). |
