cal.diy icon indicating copy to clipboard operation
cal.diy copied to clipboard

Endpoint to discover latest cal-api-version per endpoint

Open Enfasis2025 opened this issue 7 months ago • 2 comments

Problem

The cal-api-version header is required for API v2 endpoints. When Cal.com updates this version (e.g., from 2024-08-13 to 2026-02-25 for POST /bookings), existing integrations break silently with no prior notice.

There is currently no programmatic way to:

  1. Discover the latest supported cal-api-version for a given endpoint.
  2. Receive notifications when a version changes.
  3. Maintain backward compatibility with older versions.

This causes all automations relying on hardcoded versions to fail unexpectedly.

Proposed Solution

One or more of the following:

  • A GET /api/v2/versions endpoint returning the latest cal-api-version per endpoint.
  • A deprecation policy with advance notice before breaking changes.
  • Backward compatibility: continue supporting older cal-api-version values for a grace period.
  • A changelog webhook or notification system for version updates.

Impact

Any external integration, automation, or AI agent using the Cal.com API v2 is affected. Breaking changes without notice undermine trust in the API's stability.

Environment

  • API: Cal.com API v2
  • Affected endpoint example: POST /v2/bookings (cal-api-version: 2026-02-25)

Enfasis2025 avatar Apr 06 '26 08:04 Enfasis2025

Hi! I'd like to work on this silent breaking changes on versioned API headers is a real pain point for anyone building integrations on top of Cal.com.

Before I start, I wanted to clarify the intended scope since the proposal lists four possible solutions:

  1. GET /api/v2/versions endpoint returns the latest cal-api-version per endpoint
  2. Deprecation policy with advance notice
  3. Backward compatibility grace period for older versions
  4. Changelog webhook / notification system

Are all four expected, or is the priority just the version discovery endpoint (option 1) for now? That feels like the most self-contained and immediately useful piece to ship first.

Happy to start with that if it gets a green light!

SahilArate avatar Apr 13 '26 17:04 SahilArate

i think the painful part here is not only missing docs, it is that clients have no way to self-correct once the version header changes. if a full /api/v2/versions endpoint is too much for first step, even returning the accepted cal-api-version for that route in error responses would already help a lot, because right now integrations just fail after deploy and have to guess the new header. long term i still think version discovery plus a small grace period is the safer contract for automation users.

rnagulapalle avatar Apr 17 '26 05:04 rnagulapalle