Skip to content

API reference

Events

Direct event lifecycle management. Lower-level than Bookings; use when you need precise control over time, participants, and lifecycle transitions.

Key points

  • Events go through draft → scheduled → confirmed → in_progress → completed (or cancelled / no_show)
  • Most integrations use Bookings; reach for /events when you have a fixed time and skip ranking
  • Recurring series use a parent event with a recurrence rule; child occurrences are addressable
  • Lifecycle transitions (confirm, cancel, complete) are dedicated endpoints, not status updates

Event lifecycle

Events flow through these statuses:

  • draft — created but not yet committed to the schedule
  • pending — waiting on confirmation or approval from a participant
  • scheduled — committed and on the schedule
  • confirmed — participants have confirmed attendance
  • in_progress — currently happening
  • completed — finished successfully
  • cancelled — explicitly cancelled
  • no_show — passed without anyone showing up
  • rescheduled — moved to a new time (replaced by a new event at the new slot)

Status transitions happen through dedicated endpoints (/confirm, /cancel, /complete, /reschedule) — not by setting status in an update.

Create event

POST/api/v1/events

Create an event or recurring series at a specific time. Use Bookings instead if you want the engine to pick the time.

Headers

  • x-organization-idUUIDrequired

    Organization scope

  • x-template-idstringrequired

    Template ID

Request body

Required: eventType, startTime, endTime, primaryEntityId. Include recurrence to create a series.

{
  "eventType": "home_visit",
  "title": "Weekly Home Visit",
  "description": "Regular weekly check-in",
  "startTime": "2026-04-15T09:00:00Z",
  "endTime": "2026-04-15T10:00:00Z",
  "primaryEntityId": "ent_pt_9001",
  "participants": [
    { "entityId": "ent_staff_a8f4", "role": "provider", "isRequired": true }
  ],
  "resources": [
    { "entityId": "res_van_2", "resourceType": "transport_vehicle", "quantity": 1 }
  ],
  "recurrence": {
    "frequency": "WEEKLY",
    "byDay": ["MO"],
    "interval": 1,
    "until": "2026-12-31"
  }
}

Responses

201Event or series created. For series, the response represents the parent event.
{
  "id": "evt_b29f4e58-...",
  "organizationId": "org-12345",
  "templateId": "home_care_v1",
  "eventType": "home_visit",
  "title": "Weekly Home Visit",
  "startTime": "2026-04-15T09:00:00.000Z",
  "endTime": "2026-04-15T10:00:00.000Z",
  "status": "scheduled",
  "primaryEntityId": "ent_pt_9001",
  "participants": [...],
  "resources": [...],
  "eventData": {
    "visitType": "routine",
    "tasksRequired": ["medication", "vitals"]
  },
  "createdAt": "2026-04-26T15:30:00.000Z",
  "updatedAt": "2026-04-26T15:30:00.000Z"
}
400Validation error in request body
409Scheduling conflict detected. Unlike /bookings, /events does not return suggestions on 409 — it only reports the failure.

List events

GET/api/v1/events

Paginated list of events with rich filtering.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Query parameters

  • entityIdUUID

    Filter to events involving a specific entity

  • eventTypestring

    Filter by event type e.g. home_visit

  • statusenum

    Filter by status (any of the lifecycle statuses)

  • startDatedate

    Events on or after this date e.g. 2026-04-01

  • endDatedate

    Events on or before this date e.g. 2026-04-30

  • searchstring

    Free-text search

  • limitinteger

    Default 20, max 100

  • offsetinteger

    Default 0

  • orderBystring

    startTime, createdAt, updatedAt

  • orderDirectionenum

    asc or desc

Responses

200Paginated event list

Get event

GET/api/v1/events/{eventId}

Retrieve a single event by ID.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Path parameters

  • eventIdstringrequired

    Event ID

Responses

200Event returned
{
  "id": "evt_b29f4e58-...",
  "organizationId": "org-12345",
  "templateId": "home_care_v1",
  "eventType": "home_visit",
  "title": "Weekly Home Visit",
  "startTime": "2026-04-15T09:00:00.000Z",
  "endTime": "2026-04-15T10:00:00.000Z",
  "status": "scheduled",
  "primaryEntityId": "ent_pt_9001",
  "participants": [...],
  "resources": [...],
  "eventData": {
    "visitType": "routine",
    "tasksRequired": ["medication", "vitals"]
  },
  "createdAt": "2026-04-26T15:30:00.000Z",
  "updatedAt": "2026-04-26T15:30:00.000Z"
}
404Event not found

Update event

PATCH/api/v1/events/{eventId}

Update event fields. For recurring events, the scope field controls which occurrences are affected.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Path parameters

  • eventIdstringrequired

    Event to update

Request body

Partial update. Mutable fields: title, description, startTime, endTime, location, participants, resources, eventData. For recurring events, scope is THIS_ONLY (default), THIS_AND_FUTURE, or ALL_IN_SERIES.

{
  "title": "Weekly Home Visit (extended)",
  "endTime": "2026-04-15T10:30:00Z",
  "scope": "THIS_ONLY"
}

Responses

200Event updated
{
  "id": "evt_b29f4e58-...",
  "organizationId": "org-12345",
  "templateId": "home_care_v1",
  "eventType": "home_visit",
  "title": "Weekly Home Visit",
  "startTime": "2026-04-15T09:00:00.000Z",
  "endTime": "2026-04-15T10:00:00.000Z",
  "status": "scheduled",
  "primaryEntityId": "ent_pt_9001",
  "participants": [...],
  "resources": [...],
  "eventData": {
    "visitType": "routine",
    "tasksRequired": ["medication", "vitals"]
  },
  "createdAt": "2026-04-26T15:30:00.000Z",
  "updatedAt": "2026-04-26T15:30:00.000Z"
}
404Event not found

Don’t use update for status changes

Lifecycle transitions (confirm, cancel, complete, reschedule) are not exposed through PATCH. Each has a dedicated endpoint because each triggers different side effects — notifications, audit entries, downstream cascades. PATCH is for editing the event’s data, not its state machine.

Delete event

DELETE/api/v1/events/{eventId}

Hard-delete an event. For most cases, prefer /cancel — it preserves audit history.

Headers

  • x-organization-idUUIDrequired

    Organization scope

  • x-user-idstringrequired

    Acting user for audit

Path parameters

  • eventIdstringrequired

    Event to delete

Query parameters

  • reasonstring

    Optional reason captured in audit log

Responses

204Deleted; no response body
404Event not found

Lifecycle transitions

Four endpoints handle status transitions. All require x-organization-id and x-user-id headers, take the event ID as a path parameter, and return the updated event:

  • POST /api/v1/events/{eventId}/confirm — moves to confirmed; emits confirmation notifications per template config
  • POST /api/v1/events/{eventId}/cancel — moves to cancelled; triggers waitlist auto-promotion if configured
  • POST /api/v1/events/{eventId}/complete — moves to completed; locks event data against further changes
  • PUT /api/v1/events/{eventId}/reschedule — moves the original to rescheduled and creates a new event at the new time

All four return 200 with the updated event, or 404 if the event ID is unknown to the organization.

Recurring series

GET/api/v1/events/series/{parentSeriesId}

List all occurrences of a recurring series, ordered by recurrence index.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Path parameters

  • parentSeriesIdstringrequired

    The parent event ID of the series

Query parameters

  • statusenum

    Filter occurrences by status

Responses

200List of series occurrences

Series use a parent-child model. The parent is created with a recurrence rule; child occurrences are materialized lazily as they approach. Each child has its own ID and can be addressed individually for cancellation, rescheduling, or modification.

External sync

GET/api/v1/events/sync/external/{externalSystemName}/{externalEventId}

Look up an event by its external system ID. Useful when reconciling state after webhook delivery.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Path parameters

  • externalSystemNamestringrequired

    Name of the external system (e.g. outlook, netsmart)

  • externalEventIdstringrequired

    ID of the event in the external system

Responses

200FlexiScheduler event mapped from the external reference
{
  "id": "evt_b29f4e58-...",
  "organizationId": "org-12345",
  "templateId": "home_care_v1",
  "eventType": "home_visit",
  "title": "Weekly Home Visit",
  "startTime": "2026-04-15T09:00:00.000Z",
  "endTime": "2026-04-15T10:00:00.000Z",
  "status": "scheduled",
  "primaryEntityId": "ent_pt_9001",
  "participants": [...],
  "resources": [...],
  "eventData": {
    "visitType": "routine",
    "tasksRequired": ["medication", "vitals"]
  },
  "createdAt": "2026-04-26T15:30:00.000Z",
  "updatedAt": "2026-04-26T15:30:00.000Z"
}
404No event found for this external reference