A Google Calendar API mock for scheduling meetings.

Give your agent seeded calendars, events and attendees. It can create a meeting; read the event afterwards to check its start, end and guest list.

Connect your agent
The test
  • meeting_created

    Calls POST /calendar/v3/calendars/*/events

Starting records

  • calendars

    ref
    team
    summary
    Acme team
    description
    Time off, all-hands and company events
  • events

    ref
    ridgeway_checkin
    summary
    Ridgeway Robotics pilot check-in
    description
    Week 2 of the pilot: warehouse data in the sales pipeline, open questions on exports.
    start
    2026-11-02T10:00:00-08:00
  • events / ridgeway_checkin / attendees

    email
    erin.walsh@ridgeway-robotics.example
    name
    Erin Walsh

Connect your agent to the Google Calendar mock

When ancha runs your agent, it sets:

  • GOOGLE_CALENDAR_API_URL
  • GOOGLE_CALENDAR_ACCESS_TOKEN

Point the client you already use at them.

import { auth, calendar } from '@googleapis/calendar';
const oauth = new auth.OAuth2();
oauth.setCredentials({ access_token: process.env.GOOGLE_CALENDAR_ACCESS_TOKEN });
const cal = calendar({ version: 'v3', auth: oauth });
const options = { rootUrl: process.env.GOOGLE_CALENDAR_API_URL + '/' };
const { data } = await cal.events.list({ calendarId: 'primary', timeMin: '2026-11-02T00:00:00Z', singleEvents: true, orderBy: 'startTime', maxResults: 10 }, options);

Locally, ancha runs your agent as an ordinary process, so keep real Google Calendar credentials out of its environment.

See all 20 endpoints

calendar

POST/calendar/v3/calendars
GET/calendar/v3/calendars/:calendarId
PATCH/calendar/v3/calendars/:calendarId
DELETE/calendar/v3/calendars/:calendarId
GET/calendar/v3/calendars/:calendarId/events
POST/calendar/v3/calendars/:calendarId/events
GET/calendar/v3/calendars/:calendarId/events/:eventId
PUT/calendar/v3/calendars/:calendarId/events/:eventId
PATCH/calendar/v3/calendars/:calendarId/events/:eventId
DELETE/calendar/v3/calendars/:calendarId/events/:eventId
GET/calendar/v3/calendars/:calendarId/events/:eventId/instances
POST/calendar/v3/calendars/:calendarId/events/:eventId/move
POST/calendar/v3/calendars/:calendarId/events/import
POST/calendar/v3/calendars/:calendarId/events/quickAdd
GET/calendar/v3/colors
POST/calendar/v3/freeBusy
GET/calendar/v3/users/me/calendarList
GET/calendar/v3/users/me/calendarList/:calendarId
GET/calendar/v3/users/me/settings
GET/calendar/v3/users/me/settings/:setting

Seed your own data

The data the Google Calendar mock starts with on every run, cut to a few records. ancha twins seed google-calendar prints every field.

Full seed YAML
twins:
  - google-calendar
seed:
  google-calendar:
    owner:
      email: ben@acme.example
      name: Ben Carter
    calendars:
      - ref: team
        summary: Acme team
        description: Time off, all-hands and company events
        access: writer
        color_id: "7"
    events:
      - ref: ridgeway_checkin
        summary: Ridgeway Robotics pilot check-in
        description: "Week 2 of the pilot: warehouse data in the sales pipeline, open questions on exports."
        start: 2026-11-02T10:00:00-08:00
        end: 2026-11-02T10:30:00-08:00
        meet: true
        created: -50h
        attendees:
          - email: erin.walsh@ridgeway-robotics.example
            name: Erin Walsh
            response: accepted

Check what your agent did

Checks YAML
checks:
  - id: meeting_created
    trace:
      called: POST /calendar/v3/calendars/*/events

Tested together

All 43 tools

Google Calendar API mock FAQ

How can I test a scheduling agent that checks Google Calendar availability?

Call POST /calendar/v3/freeBusy with timeMin, timeMax and calendar IDs in items. Ancha expands recurring events, clips busy periods to that window and merges overlapping periods. Cancelled events and events marked transparent are excluded from busy time.

How do recurring meetings appear in the Google Calendar mock?

List events with singleEvents=true to expand a recurring series into occurrences; use orderBy=startTime to sort them. Each occurrence has its own ID, recurringEventId and originalStartTime. A weekly RRULE can select weekdays with BYDAY and end after COUNT occurrences.

What does the Calendar sandbox return if my agent creates the same event ID twice?

When an event with that ID already exists in the calendar, the mock returns 409 with reason duplicate. Supply a valid event id in POST /calendar/v3/calendars/:calendarId/events to exercise that retry path.

Install the CLI and run your agent against the Google Calendar mock.

Book a demo

Ancha is not affiliated with Google Calendar.