Guide
Getting started
Every request is authenticated and runs over HTTPS against one UK-resident base URL. Here's the shortest path from zero to a successful call.
1. Get an API key
API keys are issued per organization. Create one from the Comflyant
dashboard (Settings → API keys), or — if you already hold a key — mint
more from the API itself via POST /v1/organization/api-keys.
The raw key is shown once, at creation; store it somewhere
safe and treat it like a password. Keys can be revoked at any time and
never expire unless you set an expiry.
By default a key is an org / service credential — its requests
are audited as the integration itself. To attribute API actions to an individual,
create a staff user with POST /v1/users and pass its
user_id when you mint the key: that key is user-scoped,
so everything it does is logged against that person. API-provisioned users are
API-only (no dashboard sign-in, no MFA) until you invite them.
API access requires the Professional plan or higher (the
api_access entitlement). See
authentication for how that gate surfaces
as a 402.
2. Base URL
All developer endpoints live under the /v1 prefix:
https://api.comflyant.co.uk/v1
3. Make your first authenticated call
Send your key in the X-API-Key header. This returns the
organization that owns the key — a good first request to confirm your
credentials work:
curl https://api.comflyant.co.uk/v1/organization \
-H "X-API-Key: $COMFLYANT_API_KEY"
A successful response looks like:
{
"id": "0b3a7f7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Riverside Health",
"contact_email": "ops@riverside.example",
"status": "active",
"created_at": "2026-10-01T09:30:00Z"
}
A missing or invalid key returns 401 Unauthorized. Keep
your key server-side — never ship it in a browser or mobile app.
4. Where to go next
Explore every endpoint, with request/response schemas and runnable examples, in the interactive API reference. Or read on: