Recal REST API Reference - Calendar API Endpoints & Authentication
Complete REST API reference for Recal. Authentication, endpoints for users, organizations, calendar events, and OAuth connections.
Complete API Reference
This page provides an overview of key endpoints. For the complete API documentation including all endpoints, request/response schemas, and interactive testing, visit our Swagger UI at api.recal.dev/v1/swagger.
Base URL
https://api.recal.dev/v1
Authentication
Authenticate requests using your API key in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.recal.dev/v1/users
Generate API keys in the Recal Dashboard under API Keys. Keys are scoped to organizations for secure access control.
Core Endpoints
📅 Scheduling
Find optimal time slots across users or organizations, accounting for timezones, working hours, and availability.
Endpoint | Description |
---|---|
GET /v1/users/{userId}/scheduling | Available slots for a user |
GET /v1/organizations/{orgSlug}/scheduling | Available slots across an organization |
👤 Users
Manage users within organizations. Users serve as the primary entities for calendar connections.
Method | Endpoint | Description |
---|---|---|
GET | /v1/users | List organization users |
POST | /v1/users | Create a user |
GET | /v1/users/{userId} | Get user details |
PUT | /v1/users/{userId} | Update user |
DELETE | /v1/users/{userId} | Delete user |
🏢 Organizations
Handle multi-tenant structures with organizations for grouping users and managing access.
Method | Endpoint | Description |
---|---|---|
GET | /v1/organizations | List organizations |
POST | /v1/organizations | Create organization |
GET | /v1/organizations/{orgSlug} | Get details |
PUT | /v1/organizations/{orgSlug} | Update organization |
DELETE | /v1/organizations/{orgSlug} | Delete organization |
🗓️ Calendar Operations
Perform event management and availability checks for connected calendars.
Endpoint | Description |
---|---|
GET /v1/users/{userId}/calendar/busy | User's busy periods |
GET /v1/organizations/{orgSlug}/calendar/busy | Organization's busy periods |
🔐 OAuth Connections
Connect users to calendar providers and manage authorizations.
Supported Providers:
- ✅ Google Calendar
- ✅ Microsoft Outlook
Method | Endpoint | Description |
---|---|---|
GET | /v1/users/{userId}/oauth | List connections |
POST | /v1/users/{userId}/oauth/{provider}/authorize | Start OAuth flow |
DELETE | /v1/users/{userId}/oauth/{provider} | Remove connection |
Quick Start Example
# 1. List your users
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.recal.dev/v1/users
# 2. Check user availability
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.recal.dev/v1/users/{userId}/calendar/busy
# 3. Find scheduling slots
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.recal.dev/v1/users/{userId}/scheduling
Next Steps
Recal Core Concepts - Organizations, Users & Calendar Events
Learn how Recal's organizations, users, and events work together. Understand multi-tenant calendar management and API data structures.
Recal Node.js SDK - Calendar API Client Library (Coming Soon)
Official Node.js SDK for Recal's calendar API. Type-safe client, simplified OAuth flows, and webhook handling. Coming soon.