Open Infrastructure for Mental Healthcare.
Build Care experiences on the same rails Heyrafiki runs on: Identity, Matching, Scheduling, Records, Claims and Payments, exposed as clean, documented APIs.
$ curl https://api.heyrafiki.space/v1/matches \
-H "Authorization: Bearer hey_sk_..." \
-d language=sw \
-d modality=cbt \
-d budget=2500
{
"matches": [
{ "practitioner": "prac_8Kd2", "fit": 0.97,
"verified": true, "next_slot": "today 16:00" },
],
"consent_scope": "matching_only"
}The Whole Care Pathway, as Primitives.
Compose them into anything from a university counselling portal to a national insurer integration.
/matches
Compatibility-ranked Practitioner matches from structured preferences.
/bookings
Availability, Bookings and Session Rooms that respect time zones.
/claims
Structured, coded Claims generated from approved Notes.
/webhooks
Every event on the Care pathway, delivered where you build.
Records, Payments and Verification run on the same rails. The full surface is documented with access.
The Standards Health Systems already Run on.
Clinical data moves in the standards health systems already run on, FHIR and ICD-10, so one integration reaches everything on the rails. Aggregate program reporting is designed to align with national health reporting systems, DHIS2 included, so what you build here can plug into what Ministries and Counties already run.
Open Source, on Purpose.
The core is public, inspectable and extendable, so anyone can read exactly how Records, Consent and Payments are handled.
One Care Lifecycle, Four Calls.
Match, book, document, settle. Each step is one request, and every step emits a webhook, so your system knows what happened the moment it happens.
- Matches are ranked and explained, with licence status attached
- Bookings return a consent-aware Session Room, ready to open
- Approved Notes emit structured, coded Claims automatically
- Settlement is Instant, and the event tells you so
1curl https://api.heyrafiki.space/v1/matches \
2 -H "Authorization: Bearer $KEY" \
3 -d '{
4 "concerns": ["grief"],
5 "language": "sw",
6 "availability": "evenings"
7 }'
8
9# 200 OK
10{
11 "matches": [{
12 "practitioner_id": "prc_9d2",
13 "fit": 0.97,
14 "licence": "verified",
15 "reasons": ["speciality", "language"]
16 }]
17}Build what we have not Imagined.
The rails carry more than our own product. Three starting points, and the primitives each one composes.
A University Counselling Portal
Students book verified Counsellors from a campus portal, with wellbeing trends reported to student services in aggregate only.
An NGO Field Program
Community health workers screen with validated instruments in the field, and escalate to licensed Practitioners when a score calls for it.
An Insurer Integration
Structured Claims flow straight into your adjudication systems, with the audit trail attached and settlement events in real time.
