Developer documentation
The Comflyant API
Scheduled, SMS-delivered forms for UK healthcare — recipients, versioned templates, plans and schedules, forms and webhooks, over one compliant, UK-resident API. Everything the dashboard does, your product can do too.
Guides
Start here, then dig into whichever concept you need. Dynamic details — endpoints, request/response schemas, webhook events, enum values — live in the interactive reference, which is generated straight from the API, so it never drifts from what the server actually does.
The resource model
A quick tour of the objects you'll work with. See the reference for the full field-by-field schema of each.
- Organization
- Your tenant. The organization owning the API key is resolved on every request; everything else is scoped to it. Manage your organization and its API keys under
/v1/organization. - Recipients
- The people who receive your messages — name, UK phone number (E.164) and timezone, plus an optional
external_refto tie back to your own records. A durable signed link token is minted per recipient. - Form templates & versions
- A form template is the logical lineage (name, description); each version owns the questions and a status (
draft/published/archived). Structural edits create a new version — forms already sent never change. - Informational templates
- One-way messages that are just sent, with no response expected — the counterpart to forms within a plan.
- Plans & schedules
- A plan is what a recipient is enrolled on; it is made of deliverables (forms or informationals). Plan templates are the reusable library; a recipient plan is an enrollment. Schedules are the execution unit the cron dispatches.
- Forms
- A form instance sent to a recipient. It snapshots its template version's questions at creation and records the answers as they come back. One-off sends are ad-hoc forms with no schedule.
- Messages
- The outbound SMS log — purpose, delivery status, segment count and the provider's message id — so you can audit exactly what was sent and what happened to it.
- Webhooks
- Register HTTPS endpoints to receive events as they happen. Each delivery is signed so you can verify it came from Comflyant, and failed deliveries are retried.
- Staff users & audit attribution
- Provision your own staff via
/v1/usersand give each a user-scoped API key, so every request is attributed to a named person in the audit log. API-provisioned users are API-only (no dashboard login, no MFA) until you invite them to the dashboard.
Data residency
All data and infrastructure are hosted in the United Kingdom (London,
europe-west2). Comflyant is the data processor; your
organization is the data controller. See our trust & security page
for the controls in place.
Versioning & stability
The /v1 resource API follows semantic versioning, surfaced as
info.version in the OpenAPI spec.
Build against it with confidence:
- Additive changes ship in minor releases. We may add new endpoints, new optional fields, and new enum values without a version bump — so write clients that ignore unknown fields rather than reject them.
-
We won't break you within a major version. We don't
remove or rename a field, tighten a type, or change the meaning of an
existing response on
/v1without incrementing the major version. - Breaking changes get a new major version and a deprecation window, so you have time to migrate before the old version is retired.
These promises are enforced in our CI: a backward-incompatible change to a
published /v1 shape fails the build unless it is shipped as a
new major version.
Ready to dig in? Start with getting started, or open the interactive API reference to browse every endpoint and try requests against your own key.