API Reference
Pathway Configs

Pathway Configs

Pathway configs control how clinical events (appointment bookings, lab results, questionnaire submissions, etc.) create or route into episodes. Each trigger type has one config per organisation.

Endpoints

MethodEndpointDescription
GET/pathway-configsList all configs
GET/pathway-configs/{id}Retrieve a config
PATCH/pathway-configs/{id}Update a config

Configs are created automatically for each trigger type — you cannot create or delete them. Use PATCH to modify settings. To disable a pathway, set enabled: false.

The Config Object

{
  "id": "cfg_123e4567-e89b-12d3-a456-426614174000",
  "trigger_type": "appointment.booked",
  "enabled": true,
  "creation_mode": "attach_or_create",
  "inbox_visibility": "surface",
  "journey_type": "access",
  "expected_next_actor": "practice",
  "conditions": {},
  "event_message_template": null,
  "event_title_template": null,
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-01T00:00:00Z"
}

Creation Modes

ModeDescription
create_episodeAlways create a new episode
attach_or_createAttach to existing open episode of same journey type, else create new
attach_onlyOnly attach to existing episodes, never create
log_onlyEvent logged but no episode created or modified

Trigger Types

appointment.booked, appointment.cancelled, appointment.rescheduled, questionnaire.submitted, lab_result.received, invoice.created, prescription.signed, identity_verification.completed, clinical_access.requested, message.sent, message.received, document.uploaded


List Configs

GET /pathway-configs

Sorted by trigger_type ascending.

Query Parameters

ParameterTypeDescription
limit / offsetintegerPagination (default 20)
trigger_typestringFilter by trigger type
enabledstringFilter enabled/disabled
journey_typestringFilter by journey type
creation_modestringFilter by creation mode
inbox_visibilitystringsurface or silent

Update a Config

PATCH /pathway-configs/{id}

Updatable Fields

FieldTypeValidation
enabledbooleanEnable/disable this pathway
creation_modestringcreate_episode, attach_or_create, attach_only, log_only
inbox_visibilitystringsurface or silent
journey_typestringEpisode journey type classification
expected_next_actorstringpractice or patient
conditionsobjectBase condition filtering (JSON object)
event_message_templatestringTemplate for event message
event_title_templatestringTemplate for event title

Safety Floors

⚠️

Certain trigger types have safety floors that prevent you from reducing the creation mode or hiding inbox visibility below a minimum threshold. This protects clinically significant events from being silenced.

Trigger TypeMin Creation ModeMin Visibility
lab_result.receivedcreate_episodesurface
prescription.signedcreate_episodesurface
identity_verification.completedcreate_episodesurface
clinical_access.requestedcreate_episodesurface
appointment.bookedattach_or_createsurface
questionnaire.submittedattach_or_createsurface
message.receivedattach_or_createsurface
invoice.createdattach_onlysurface

Attempting to set a value below the floor returns 422 VALIDATION_ERROR with details explaining the constraint.


Related Resources