---
title: "Connect calendar to agent"
method: POST
path: "/agents/{id}/calendars"
tags: ["agents"]
---

# Connect calendar to agent

`POST /agents/{id}/calendars`

## Request

- Base URL: `https://be.skipcalls.com` (the document declares no server; this is the origin it was published from)
- URL: `https://be.skipcalls.com/agents/{id}/calendars`
- Auth: HTTP bearer

Links a calendar (Google/Outlook/Apple) to the agent so it can check availability and auto-book appointments during calls. Specify work hours per day (HHMM format), timezone, default duration, buffer minutes. The calendar must already belong to the user.

## Path parameters

- `id` string, required

## Request body

- CreateAgentCalendarDto
  - `calendarId` string, required
  - `description` string
  - `defaultDuration` number, required
  - `bufferMinutes` number, required
  - `timezone` string
  - `workHoursByDay` object, required: Work hours by day in HHMM format (e.g., {"MONDAY": [900, 1730]})
  - `workDays` string[], required
  - `isActive` boolean, required: Allow event creation on this calendar
  - `showEventNames` boolean: Share event names with callers instead of just busy/free times
  - `allowDoubleBooking` boolean: Allow booking overlapping appointments on the same time slot
  - `allowCancellation` boolean: Let the AI cancel a caller's upcoming booking on this calendar. Matched by caller ID only.

## Response `201`

## Changes

- **2026-10-18** `df3759177711`: 1 info
  - added the new optional request property `allowCancellation`

[Operation history](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/changes/agents/:id/calendars/post.md)

---

[API](https://skmtc.dev/skipcalls/apis/skipcalls-public-api.md) - [All operations](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/revisions/c893bb6c0091?raw)
