REST API Overview
Technical reference for Recal's unified calendar REST API endpoints and authentication
REST API Overview
Recal's REST API provides a standardized interface for calendar operations across providers. All endpoints follow RESTful principles with JSON payloads.
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.
Typical Workflow
- Check free/busy periods
- Query available slots
- Create events in calendars
- Verify OAuth connections
GET /v1/users/{userId}/scheduling
- Available slots for a userGET /v1/organizations/{orgSlug}/scheduling
- Available slots across an organization
Users
Manage users within organizations. Users serve as the primary entities for calendar connections.
GET /v1/users
- List organization usersPOST /v1/users
- Create a userGET /v1/users/{userId}
- Get user detailsPUT /v1/users/{userId}
- Update userDELETE /v1/users/{userId}
- Delete user
After creating users:
- Connect via OAuth
- Manage events
- Check availability
Organizations
Handle multi-tenant structures with organizations for grouping users and managing access.
GET /v1/organizations
- List organizationsPOST /v1/organizations
- Create organizationGET /v1/organizations/{orgSlug}
- Get detailsPUT /v1/organizations/{orgSlug}
- Update organizationDELETE /v1/organizations/{orgSlug}
- Delete organization
Calendar Operations
Perform event management and availability checks for connected calendars.
GET /v1/users/{userId}/calendar/free-busy
- User's busy periodsGET /v1/organizations/{orgSlug}/calendar/free-busy
- Organization's busy periods
OAuth Connections
Connect users to calendar providers and manage authorizations.
Supported providers:
- Google Calendar
- Microsoft Outlook
Connection Flow
- Generate authorization URL
- User grants access
- Establish connection
- Access calendar data
GET /v1/users/{userId}/oauth
- List connectionsPOST /v1/users/{userId}/oauth/{provider}/authorize
- Start OAuth flowDELETE /v1/users/{userId}/oauth/{provider}
- Remove connection
Interactive Documentation
Test endpoints in real-time:
- Swagger UI - Interactive explorer with schemas and examples
Next Steps
Quick Start
Make your first API call
Node.js SDK
Simplified integration with our SDK
Full Endpoint Reference
Detailed specs for all routes
For support:
- Email: team@recal.dev
- Dashboard: recal.dev