Skip to content

Platform · Scheduling engine

The engine every domain rides on.

Constraint validation. Conflict detection. Alternative ranking. Waitlist orchestration. Notification dispatch. The five primitives every scheduling system needs — battle-tested, configurable, accessed over a stable REST API.

Five primitives

What the engine actually does.

Every scheduling system needs these. Most teams build them badly, four times, across four different products. FlexiScheduler ships them once, hardened.

Constraint validation

Time, capability, attribute, capacity, and custom rules — evaluated in sequence with structured pass/fail. Hard constraints block; soft constraints warn; everything is logged.

Conflict detection

Multi-dimensional. Time overlap, resource contention, attribute mismatch, rule violation. Each conflict carries the affected entities, the failed rule, and remediation suggestions.

Alternative ranking

When the requested slot doesn't work, the engine returns ranked alternatives. Ranking weights are configurable per template and event type — proximity, merge opportunity, cost, preference.

Waitlist orchestration

Cancellations trigger waitlist evaluation. Priority-ordered, response-timeout-aware, auto-promote with confirmation flow. Templates define the priority scoring.

Notification dispatch

Multi-channel: SMS, email, voice, push, calendar invites. Two-way response handling for confirmations and cancellations. Templates define triggers, recipients, and timing.

Audit + observability

Every read and write captured. Structured trace IDs across the full request path. Export to your SIEM. Designed for HIPAA-grade audit requirements out of the box.

Constraint validation in detail

Every booking flows through a chain of gates.

Each constraint declared in your template becomes a gate. The engine runs them in sequence and short-circuits on the first hard failure — returning a structured error that names the gate, the rule expression, and the data that caused the rejection.

Hard constraints block bookings. Soft constraints attach warnings. Custom validators (TypeScript extensions) plug into the same chain — the engine doesn’t care whether a gate is built-in or user-defined.

time

Time-based

daily_hours <= 8

capability

Attribute / capability

staff.skills ⊇ event.required_skills

capacity

Capacity

COUNT(concurrent) < resource.capacity

custom

Extension validator

CarePlanValidator(event, participant)

Order matters

Cheap constraints (time, attribute) run first. Expensive ones (extensions, multi-entity lookups) run last. The engine short-circuits — you only pay for the validators that actually get reached.

The API shape

One API. Every domain.

One endpoint, one consistent response shape across every domain. The same /availability/check call returns clinic visits in Medical Practice, hot desks in Coworking, dock appointments in Logistics — your template determines the meaning.

Request

POST /api/v1/availability/checkhttp
POST /api/v1/availability/check

{
  "templateId": "home_care_v1",
  "eventType": "home_care_visit",
  "primaryEntityId": "participant_123",

  "preferences": {
    "preferredStart": "2026-04-28T10:00:00Z",
    "flexibilityBeforeDays": 3,
    "flexibilityAfterDays": 7,
    "preferMergeOpportunities": true
  },

  "requiredResources": [
    { "resourceType": "transport_vehicle", "quantity": 1 }
  ]
}

Response

200 OKjson
{
  "requestId": "req_abc123",
  "availableSlots": [
    {
      "slotId": "slot_1",
      "startTime": "2026-04-28T10:00:00Z",
      "endTime": "2026-04-28T11:00:00Z",
      "confidenceScore": 0.95,

      "allocatedEntities": {
        "homeCareStaff": { "id": "staff_456", "name": "M. Reyes" }
      },
      "allocatedResources": {
        "transportVehicle": { "id": "van_2", "type": "wheelchair_lift" }
      },

      "mergeOpportunity": {
        "existingEventId": "event_789",
        "savingsMinutes": 60
      }
    }
  ],
  "conflicts": [],
  "warnings": []
}

What you get back

A response shape worth integrating against.

The response carries everything the calling system needs to act — slot details, allocated entities and resources, optimization metadata, and any conflicts or warnings to surface.

availableSlots[]

Ranked list of viable slots. Empty array if nothing matches preferences and constraints.

confidenceScore

0–1 score per slot reflecting how well it matches all preferences after constraint validation.

allocatedEntities

Entities (provider, staff, vehicle, etc.) the engine pre-allocated for this slot. You confirm or change at booking time.

allocatedResources

Resources (rooms, equipment) allocated. Same confirm-or-change flow as entities.

mergeOpportunity

When applicable: an existing event this slot could be combined with, plus the projected savings.

warnings

Soft constraint violations or contextual flags that don't block but should be surfaced — caregiver preference mismatch, edge-of-window timing, etc.

Performance targets

Built for the cadence of real scheduling.

The numbers the engine is designed and benchmarked against. Real workloads vary by template complexity and constraint depth.

< 500ms

Availability check p99

Template with 10+ constraints

< 200ms

Constraint chain

Standard 3-gate validation

< 50ms

Conflict detection

Within a single entity's day

99.5%

Engine availability

Excluding planned maintenance

Ready to integrate

See the engine run on a real template.

Thirty-minute walkthrough. We’ll hit the API live, watch constraints validate, and walk through the response shape your integration would consume. Bring your domain.