refactor: Cal.diy (#28903)
* feat: Cal.diy — community-driven MIT-licensed fork of Cal.com This squashed commit contains all Cal.diy changes applied on top of calcom/cal.com main: - Rebrand Cal.com to Cal.diy across the entire codebase - Remove Enterprise Edition (EE) features, license checks, and AGPL restrictions - Switch license from AGPL-3.0 to MIT - Remove docs/ directory (migrated to Nextra at cal.diy) - Remove dead code: org tests, EE tips, platform nav, premium username, SAML/SSO, etc. - Clean up .env.example for self-hosted Cal.diy - Update Docker image references to calcom/cal.diy - Update README, CONTRIBUTING.md, and issue templates for Cal.diy community fork - Add PR welcome bot for Cal.diy contributors - Fix API v2 breaking changes oasdiff ignore entries - Replace Blacksmith CI runners with default GitHub Actions 3893 files changed, 20789 insertions(+), 411020 deletions(-) Co-Authored-By: [email protected] <[email protected]> * refactor: remove org-specific /organizations/:orgId endpoints from API v2 atoms controllers (#1701) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: revert Cal.diy Inc to Cal.com, Inc. in license files, copyright notices, and package metadata (#1702) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * rip out org related comments in api v2 --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
a17f28e9ab
commit
ab21c7f805
4080 files changed
+14403
-404922
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
# Cal.com Agent Documentation Index
|
||||
# Cal.diy Agent Documentation Index
|
||||
|
||||
- **[../AGENTS.md](../AGENTS.md)** - Main guide (structure, tech stack, commands, examples)
|
||||
- **[commands.md](commands.md)** - Command reference
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Knowledge Base - Domain & Product-Specific Information
|
||||
|
||||
This file contains domain knowledge about the Cal.com product and codebase. For coding guidelines and rules, see [`rules/`](rules/).
|
||||
This file contains domain knowledge about the Cal.diy product and codebase. For coding guidelines and rules, see [`rules/`](rules/).
|
||||
|
||||
## When working with managed event types
|
||||
|
||||
@@ -52,9 +52,9 @@ Control logging verbosity by setting `NEXT_PUBLIC_LOGGER_LEVEL` in .env:
|
||||
- 5: error
|
||||
- 6: fatal
|
||||
|
||||
### Cal.com Event Identification
|
||||
### Cal.diy Event Identification
|
||||
|
||||
Cal.com events in Google Calendar can be identified by checking if the iCalUID ends with `@Cal.com` (e.g., `2GBXSdEixretciJfKVmYN8@Cal.com`). This identifier is used to distinguish Cal.com bookings from other calendar events for data storage and privacy purposes.
|
||||
Cal.diy events in Google Calendar can be identified by checking if the iCalUID ends with `@Cal.diy` (e.g., `2GBXSdEixretciJfKVmYN8@Cal.diy`). This identifier is used to distinguish Cal.diy bookings from other calendar events for data storage and privacy purposes.
|
||||
|
||||
### UI Component Locations
|
||||
|
||||
@@ -87,7 +87,7 @@ To make persistent changes to API documentation, use NestJS decorators (`@ApiQue
|
||||
|
||||
### Workflows vs Webhooks
|
||||
|
||||
Workflows and webhooks are two completely separate features in Cal.com with different implementations and file structures:
|
||||
Workflows and webhooks are two completely separate features in Cal.diy with different implementations and file structures:
|
||||
- Workflow constants: `packages/features/ee/workflows/lib/constants.ts`
|
||||
- NOT in the webhooks directory
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Cal.com Engineering Rules
|
||||
# Cal.diy Engineering Rules
|
||||
|
||||
This directory contains modular, machine-readable engineering rules derived from [Cal.com's Engineering Standards for 2026 and Beyond](https://cal.com/blog/engineering-in-2026-and-beyond).
|
||||
This directory contains modular, machine-readable engineering rules derived from [Cal.diy's Engineering Standards for 2026 and Beyond](https://cal.com/blog/engineering-in-2026-and-beyond).
|
||||
|
||||
## Structure
|
||||
|
||||
|
||||
@@ -57,4 +57,4 @@ interface BookingResponse {
|
||||
- Give users ample time to migrate (minimum 6 months for public APIs)
|
||||
- Document exactly what changed and why
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -70,4 +70,4 @@ export async function POST(request: Request) {
|
||||
**The principle:**
|
||||
We must detach HTTP technology from our application. The way we transfer data between client and server (whether REST, tRPC, etc.) should not influence how our core application works. HTTP is a delivery mechanism, not an architectural driver.
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -39,4 +39,4 @@ Domain boundaries are enforced automatically through linting. If `packages/featu
|
||||
- Easier testing: Test the entire feature as a unit with all pieces in one place
|
||||
- Clearer dependencies: When you see `import { getAvailability } from '@calcom/features/availability'`, you know exactly which feature you're depending on
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -58,4 +58,4 @@ Each feature folder is a self-contained vertical slice that includes:
|
||||
- Teams can work on different features without conflicts
|
||||
- Features are loosely coupled and can evolve independently
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -9,7 +9,7 @@ tags: ci, debugging, workflow
|
||||
|
||||
## What to Focus On
|
||||
|
||||
When reviewing CI check failures in Cal.com:
|
||||
When reviewing CI check failures in Cal.diy:
|
||||
|
||||
1. **E2E tests can be flaky** and may fail intermittently
|
||||
2. **Focus only on CI failures that are directly related to your code changes**
|
||||
|
||||
@@ -9,7 +9,7 @@ tags: ci, typescript, type-check, workflow
|
||||
|
||||
## Priority Order
|
||||
|
||||
When working on the Cal.com repository, prioritize fixing type issues before addressing failing tests.
|
||||
When working on the Cal.diy repository, prioritize fixing type issues before addressing failing tests.
|
||||
|
||||
1. Run `yarn type-check:ci --force` first
|
||||
2. Fix all TypeScript errors
|
||||
|
||||
@@ -42,4 +42,4 @@ We hold each other accountable for quality. Cutting corners might feel faster in
|
||||
- Focus on the code, not the person
|
||||
- Remember that quality standards protect everyone
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -72,4 +72,4 @@ describe("calculateOverlap", () => {
|
||||
- Checks are fast and useful
|
||||
- AI helps ensure comprehensive coverage
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -93,4 +93,4 @@ import { BookingStatus } from "@calcom/prisma/client";
|
||||
|
||||
Yes, this requires more code. Yes, it's worth it. Explicit boundaries prevent the architectural erosion that creates long-term maintenance nightmares.
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -46,4 +46,4 @@ const booking = await prisma.booking.findFirst({
|
||||
|
||||
**Exception:** Use `include` only when you genuinely need all fields from a relation, which is rare.
|
||||
|
||||
Reference: [Cal.com Engineering Standards](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Standards](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -9,7 +9,7 @@ tags: prisma, feature-flags, migrations
|
||||
|
||||
## Creating Feature Flag Migrations
|
||||
|
||||
To seed new feature flags in Cal.com, create a Prisma migration:
|
||||
To seed new feature flags in Cal.diy, create a Prisma migration:
|
||||
|
||||
```bash
|
||||
yarn prisma migrate dev --create-only --name seed_[feature_name]_feature
|
||||
|
||||
@@ -9,7 +9,7 @@ tags: prisma, database, migrations, schema
|
||||
|
||||
## After Schema Changes
|
||||
|
||||
After making changes to the Prisma schema in Cal.com and creating migrations, you need to run:
|
||||
After making changes to the Prisma schema in Cal.diy and creating migrations, you need to run:
|
||||
|
||||
```bash
|
||||
yarn prisma generate
|
||||
|
||||
@@ -197,4 +197,4 @@ class BookingRepository {
|
||||
- Keep methods generic and reusable: `findByUserIdIncludeAttendees` not `findBookingsForReporting`
|
||||
- No business logic in repositories - that belongs in Services
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -62,4 +62,4 @@ If we ever switch from Prisma to Drizzle or another ORM, the only changes requir
|
||||
- DI container wiring for new repositories
|
||||
- Nothing else in the codebase should care or change
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -9,7 +9,7 @@ tags: app-store, integrations, generated-files
|
||||
|
||||
## Generated Files
|
||||
|
||||
The Cal.com repository uses generated files (`*.generated.ts`) for app-store integrations. These files are created by the app-store-cli tool.
|
||||
The Cal.diy repository uses generated files (`*.generated.ts`) for app-store integrations. These files are created by the app-store-cli tool.
|
||||
|
||||
**Do not manually modify** `*.generated.ts` files. If you need structural changes to how integrations are imported or used, update the CLI code that generates these files.
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class BookingService {
|
||||
- **Caching Proxies**: Wrap repositories or services to add caching behavior transparently
|
||||
- **Decorators**: Add cross-cutting concerns (logging, metrics) without polluting domain logic
|
||||
|
||||
## Cal.com's Type-Safe DI with moduleLoader
|
||||
## Cal.diy's Type-Safe DI with moduleLoader
|
||||
|
||||
We use `@evyweb/ioctopus` to manage service and repository dependencies. The **moduleLoader pattern** provides type-safe dependency injection, ensuring that if a service adds a new dependency, TypeScript will catch missing dependencies at build time rather than runtime.
|
||||
|
||||
@@ -277,4 +277,4 @@ export function getMyService(): MyService {
|
||||
- **Automatic dependency resolution**: The moduleLoader automatically loads all dependencies recursively
|
||||
- **Self-documenting**: Each module declares its own dependencies explicitly
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -84,4 +84,4 @@ class TeamBillingService extends BillingService {
|
||||
- Prefer polymorphism over conditionals
|
||||
- Watch for if statement accumulation during code review
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -1,39 +0,0 @@
|
||||
---
|
||||
title: Workflow Trigger Implementation
|
||||
impact: MEDIUM
|
||||
impactDescription: Consistent workflow patterns ensure reliable automation
|
||||
tags: workflows, triggers, automation
|
||||
---
|
||||
|
||||
# Workflow Trigger Implementation
|
||||
|
||||
## Using scheduleWorkflowReminders
|
||||
|
||||
To trigger workflows in Cal.com, use the `scheduleWorkflowReminders` function. This is the standard approach used throughout the codebase.
|
||||
|
||||
Before implementing new workflow triggers, examine existing implementations in the codebase to understand the pattern. The function:
|
||||
- Filters workflows by trigger type
|
||||
- Processes each workflow step
|
||||
|
||||
Key locations where this is used:
|
||||
- Booking handlers
|
||||
- Confirmation processes
|
||||
- Other booking-related events
|
||||
|
||||
## Adding New Workflow Triggers
|
||||
|
||||
1. Check `packages/prisma/schema.prisma` for existing webhooks and workflow trigger enums as reference
|
||||
2. Add the same enums to workflows (only when asked specifically)
|
||||
3. Add enums to `packages/features/ee/workflows/lib/constants.ts` for UI display
|
||||
4. Add translations to `en/locale.json` using the format `{enum}_trigger` (all lowercase)
|
||||
|
||||
Webhook triggers serve as the reference implementation pattern for workflow triggers.
|
||||
|
||||
## Workflows vs Webhooks
|
||||
|
||||
Workflows and webhooks are two completely separate features in Cal.com with different implementations and file structures:
|
||||
|
||||
- Workflow constants: `packages/features/ee/workflows/lib/constants.ts`
|
||||
- NOT in the webhooks directory
|
||||
|
||||
When working on workflow triggers, do not reference or use webhook trigger implementations - they are distinct systems.
|
||||
@@ -51,4 +51,4 @@ const available = availableSlots.filter(slot => {
|
||||
- **Hash maps/sets**: Use for O(1) lookups instead of `.find` or `.includes` on arrays
|
||||
- **Interval trees**: For scheduling, availability, and range queries
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -50,4 +50,4 @@ new Intl.DateTimeFormat(language).format(date);
|
||||
- Date formatting without timezone concerns
|
||||
- Performance-critical loops over dates
|
||||
|
||||
Reference: [Cal.com Engineering Standards](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Standards](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -55,4 +55,4 @@ async function precomputeTeamAvailability(teamId: number) {
|
||||
|
||||
This is why performance isn't just a nice-to-have in scheduling software. It's the foundation that determines whether your system can scale to enterprise needs.
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -32,4 +32,4 @@ import { UserService } from "./services/UserService";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
```
|
||||
|
||||
Reference: [Cal.com Engineering Standards](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Standards](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -26,7 +26,7 @@ Focus on providing a clear summary of what the PR is doing and its core function
|
||||
|
||||
- Does the code do what it claims to do?
|
||||
- Are there any obvious bugs or edge cases?
|
||||
- Does it follow Cal.com coding standards?
|
||||
- Does it follow Cal.diy coding standards?
|
||||
- Is the change appropriately scoped?
|
||||
|
||||
## What to Skip (Unless Asked)
|
||||
|
||||
@@ -9,7 +9,7 @@ tags: imports, exports, modules, app-store
|
||||
|
||||
## Named vs Default Exports
|
||||
|
||||
When working with imports in the Cal.com codebase, particularly in app-store integrations, pay attention to whether modules use named exports or default exports.
|
||||
When working with imports in the Cal.diy codebase, particularly in app-store integrations, pay attention to whether modules use named exports or default exports.
|
||||
|
||||
Many services like VideoApiAdapter, CalendarService, and PaymentService are exported as named exports, but the actual export name may differ from the generic service type.
|
||||
|
||||
@@ -26,7 +26,7 @@ import CalendarService from "./applecalendar/lib/CalendarService";
|
||||
|
||||
## Generated Files
|
||||
|
||||
When fixing imports in Cal.com's generated files (like `packages/app-store/apps.browser-*.generated.tsx`), always check the actual exports in the source files first.
|
||||
When fixing imports in Cal.diy's generated files (like `packages/app-store/apps.browser-*.generated.tsx`), always check the actual exports in the source files first.
|
||||
|
||||
For EventTypeAppCardInterface components, they likely use named exports rather than default exports, requiring:
|
||||
|
||||
|
||||
@@ -37,4 +37,4 @@ const processedResult = processData(userData);
|
||||
**The principle:**
|
||||
The "slowness" of doing things right is an investment, not a cost. Code that's architected correctly from the start doesn't need massive refactors later.
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -40,4 +40,4 @@ for (const item of data) {
|
||||
**Important note:**
|
||||
Simple doesn't mean lacking in features. Just because our goal is to create simple systems, this doesn't mean they should feel anemic and lacking obvious functionality.
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -37,4 +37,4 @@ Every nitpick matters. Every pattern violation matters. Address them before merg
|
||||
- If someone wants to commit untested code, push back
|
||||
- If someone suggests copying and pasting instead of creating a proper abstraction, call it out respectfully
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -64,4 +64,4 @@ Yes, we know coverage doesn't guarantee perfect tests. We know you can write mea
|
||||
**Leverage AI for test generation:**
|
||||
AI can quickly and intelligently build comprehensive test suites. Manual testing is more and more a thing of the past.
|
||||
|
||||
Reference: [Cal.com Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
Reference: [Cal.diy Engineering Blog](https://cal.com/blog/engineering-in-2026-and-beyond)
|
||||
@@ -9,7 +9,7 @@ tags: testing, debugging, workflow
|
||||
|
||||
## One File at a Time
|
||||
|
||||
When fixing failing tests in the Cal.com repository, take an incremental approach by addressing one file at a time rather than attempting to fix all issues simultaneously.
|
||||
When fixing failing tests in the Cal.diy repository, take an incremental approach by addressing one file at a time rather than attempting to fix all issues simultaneously.
|
||||
|
||||
This methodical approach makes it easier to identify and resolve specific issues without getting overwhelmed by the complexity of multiple failing tests across different files.
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ tags: testing, mocking, calendar, app-store
|
||||
|
||||
## Calendar Service Mocks
|
||||
|
||||
When mocking calendar services in Cal.com test files, implement the `Calendar` interface rather than adding individual properties from each specific calendar service type (like `FeishuCalendarService`).
|
||||
When mocking calendar services in Cal.diy test files, implement the `Calendar` interface rather than adding individual properties from each specific calendar service type (like `FeishuCalendarService`).
|
||||
|
||||
Since all calendar services implement the `Calendar` interface and are stored in a map, the mock service should also implement this interface to ensure type compatibility.
|
||||
|
||||
## App-Store Integration Mocks
|
||||
|
||||
When mocking app-store resources in Cal.com tests, prefer implementing simpler mock designs that directly implement the required interfaces rather than trying to match complex deep mock structures created with `mockDeep`.
|
||||
When mocking app-store resources in Cal.diy tests, prefer implementing simpler mock designs that directly implement the required interfaces rather than trying to match complex deep mock structures created with `mockDeep`.
|
||||
|
||||
This approach is more maintainable and helps resolve type compatibility issues.
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ tags: testing, timezone, consistency
|
||||
|
||||
## Always Use TZ=UTC
|
||||
|
||||
When running tests in the Cal.com repository, use the `TZ=UTC` environment variable:
|
||||
When running tests in the Cal.diy repository, use the `TZ=UTC` environment variable:
|
||||
|
||||
```bash
|
||||
TZ=UTC yarn test
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
name: calcom-api
|
||||
description: Interact with the Cal.com API v2 to manage scheduling, bookings, event types, availability, and calendars. Use this skill when building integrations that need to create or manage bookings, check availability, configure event types, or sync calendars with Cal.com's scheduling infrastructure.
|
||||
description: Interact with the Cal.diy API v2 to manage scheduling, bookings, event types, availability, and calendars. Use this skill when building integrations that need to create or manage bookings, check availability, configure event types, or sync calendars with Cal.diy's scheduling infrastructure.
|
||||
env:
|
||||
CAL_API_KEY:
|
||||
description: "Cal.com API key (prefixed with cal_live_ or cal_test_). Required for all API requests."
|
||||
description: "Cal.diy API key (prefixed with cal_live_ or cal_test_). Required for all API requests."
|
||||
required: true
|
||||
CAL_CLIENT_ID:
|
||||
description: "OAuth client ID for platform integrations managing users on behalf of others. Sent as x-cal-client-id header."
|
||||
@@ -16,9 +16,9 @@ env:
|
||||
required: false
|
||||
---
|
||||
|
||||
# Cal.com API v2
|
||||
# Cal.diy API v2
|
||||
|
||||
This skill provides guidance for AI agents to interact with the Cal.com API v2, enabling scheduling automation, booking management, and calendar integrations.
|
||||
This skill provides guidance for AI agents to interact with the Cal.diy API v2, enabling scheduling automation, booking management, and calendar integrations.
|
||||
|
||||
## Base URL
|
||||
|
||||
@@ -31,7 +31,7 @@ https://api.cal.com/v2
|
||||
|
||||
| Environment Variable | Required | Description |
|
||||
|---------------------|----------|-------------|
|
||||
| `CAL_API_KEY` | Yes | Cal.com API key (prefixed with `cal_live_` or `cal_test_`). Used as Bearer token for all API requests. Generate from Settings > Developer > API Keys. |
|
||||
| `CAL_API_KEY` | Yes | Cal.diy API key (prefixed with `cal_live_` or `cal_test_`). Used as Bearer token for all API requests. Generate from Settings > Developer > API Keys. |
|
||||
| `CAL_CLIENT_ID` | No | OAuth client ID for platform integrations that manage users on behalf of others. Sent as `x-cal-client-id` header. |
|
||||
| `CAL_SECRET_KEY` | No | OAuth client secret for platform integrations. Sent as `x-cal-secret-key` header. |
|
||||
| `CAL_WEBHOOK_SECRET` | No | Secret for verifying webhook payload signatures via the `X-Cal-Signature-256` header. |
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Authentication API Reference
|
||||
|
||||
Detailed documentation for authentication methods in the Cal.com API v2.
|
||||
Detailed documentation for authentication methods in the Cal.diy API v2.
|
||||
|
||||
## Authentication Methods
|
||||
|
||||
Cal.com API v2 supports two authentication methods:
|
||||
Cal.diy API v2 supports two authentication methods:
|
||||
|
||||
1. **API Key Authentication** - For direct API access
|
||||
2. **OAuth/Platform Authentication** - For platform integrations managing users on behalf of others
|
||||
@@ -15,7 +15,7 @@ The primary authentication method for most API consumers.
|
||||
|
||||
### Obtaining an API Key
|
||||
|
||||
1. Log in to your Cal.com account
|
||||
1. Log in to your Cal.diy account
|
||||
2. Navigate to Settings > Developer > API Keys
|
||||
3. Click "Create new API key"
|
||||
4. Copy and securely store the generated key
|
||||
@@ -31,7 +31,7 @@ Authorization: Bearer cal_live_abc123xyz...
|
||||
|
||||
### API Key Format
|
||||
|
||||
All Cal.com API keys are prefixed with `cal_`:
|
||||
All Cal.diy API keys are prefixed with `cal_`:
|
||||
- `cal_live_...` - Production API keys
|
||||
- `cal_test_...` - Test/sandbox API keys (if available)
|
||||
|
||||
@@ -186,7 +186,7 @@ Common causes:
|
||||
|
||||
4. **Use minimal permissions**: Request only the scopes/permissions your application needs
|
||||
|
||||
5. **Monitor API usage**: Check your Cal.com dashboard for unusual activity
|
||||
5. **Monitor API usage**: Check your Cal.diy dashboard for unusual activity
|
||||
|
||||
6. **Secure transmission**: Always use HTTPS for API requests
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Bookings API Reference
|
||||
|
||||
Detailed documentation for booking-related endpoints in the Cal.com API v2.
|
||||
Detailed documentation for booking-related endpoints in the Cal.diy API v2.
|
||||
|
||||
## Endpoints Overview
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Calendars API Reference
|
||||
|
||||
Detailed documentation for calendar integration endpoints in the Cal.com API v2.
|
||||
Detailed documentation for calendar integration endpoints in the Cal.diy API v2.
|
||||
|
||||
## Endpoints Overview
|
||||
|
||||
@@ -284,10 +284,10 @@ GET /v2/calendars/{calendar}/events/{eventUid}
|
||||
POST /v2/calendars/google-calendar/connect
|
||||
|
||||
2. User selects which calendars to check for conflicts
|
||||
(Done via Cal.com dashboard)
|
||||
(Done via Cal.diy dashboard)
|
||||
|
||||
3. User sets destination calendar for new bookings
|
||||
(Done via Cal.com dashboard)
|
||||
(Done via Cal.diy dashboard)
|
||||
|
||||
4. When checking slots:
|
||||
- API fetches busy times from all selected calendars
|
||||
@@ -298,9 +298,9 @@ GET /v2/calendars/{calendar}/events/{eventUid}
|
||||
- Confirmation emails sent to attendees
|
||||
```
|
||||
|
||||
### Cal.com Event Identification
|
||||
### Cal.diy Event Identification
|
||||
|
||||
Cal.com events in external calendars can be identified by their iCalUID ending with `@Cal.com` (e.g., `2GBXSdEixretciJfKVmYN8@Cal.com`).
|
||||
Cal.diy events in external calendars can be identified by their iCalUID ending with `@Cal.diy` (e.g., `2GBXSdEixretciJfKVmYN8@Cal.diy`).
|
||||
|
||||
## Team Calendar Integration
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Event Types API Reference
|
||||
|
||||
Detailed documentation for event type endpoints in the Cal.com API v2.
|
||||
Detailed documentation for event type endpoints in the Cal.diy API v2.
|
||||
|
||||
## Endpoints Overview
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Schedules API Reference
|
||||
|
||||
Detailed documentation for schedule management endpoints in the Cal.com API v2.
|
||||
Detailed documentation for schedule management endpoints in the Cal.diy API v2.
|
||||
|
||||
## Endpoints Overview
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Slots and Availability API Reference
|
||||
|
||||
Detailed documentation for checking availability and managing slots in the Cal.com API v2.
|
||||
Detailed documentation for checking availability and managing slots in the Cal.diy API v2.
|
||||
|
||||
## Endpoints Overview
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Webhooks API Reference
|
||||
|
||||
Detailed documentation for webhook management endpoints in the Cal.com API v2.
|
||||
Detailed documentation for webhook management endpoints in the Cal.diy API v2.
|
||||
|
||||
## Endpoints Overview
|
||||
|
||||
|
||||
Reference in new issue
Block a user