Skip to Content
SDK 1.14 is out with per-user product usage and typed API errors. Read the changelog →
IntakeScheduling

Scheduling

Intake sessions are created via the SDK’s API rather than through a widget. This allows you to keep your existing calendar and booking flow while connecting it to Squire Intake behind the scenes.

Scheduling is API-based so you can integrate it directly into your existing calendar system without replacing your booking UI.

Flow

List available intake configs

Before creating a session, retrieve the available intake configs. Each one represents a specific intake questionnaire.

const configs = await squire.intake.getIntakeConfigs();

The function returns a list of intake configs, each with the following properties:

PropertyTypeDescription
idstringUnique identifier of the intake config
namestringHuman-readable name of the intake config

Create an intake session

Create a new intake session by calling createSession with the patient data, selected intake config, and appointment details.

const session = await squire.intake.createSession({ intakeConfigId: 'intake_config_id', appointmentDt: '2025-06-15T10:00:00Z', firstName: 'John', lastName: 'Doe', email: 'john.doe@example.com', phoneNumber: '+32412345678', healthcareProviderId: 'your_ehr_user_id', });

Session Parameters

ParameterTypeRequiredDescription
intakeConfigIdstringYesThe ID of the intake config to use (from getIntakeConfigs())
appointmentDtstring | DateYesScheduled date and time of the appointment (ISO 8601 or Date object)
firstNamestringNoPatient’s first name
lastNamestringNoPatient’s last name
emailstringNoPatient’s email address (used for sending the intake invitation)
phoneNumberstringNoPatient’s phone number
healthcareProviderIdstringNoThe healthcare provider’s user identifier from your system

Session Response

The createSession call returns an IntakeSession object:

PropertyTypeDescription
idstringUnique session identifier
intakeUrlstringURL sent to the patient to complete the intake

What Happens Next

After a session is created:

  1. The patient receives an email invitation with a link to complete the intake questionnaire.
  2. The patient fills in the questionnaire at their own pace before the appointment.
  3. Once completed, the intake summary becomes available and can be viewed via the Summary Widget.
Last updated on