Build against the same objects and authority boundaries Heyrafiki uses. Consent affects access, compatibility is explicit, and retries do not get to invent a second result.
$ curl -X POST https://api.heyrafiki.space/v1/eligibility_checks \
-H "Authorization: Bearer hey_sk_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: elig_2026_08_09_a41" \
--data '{
"member_reference": "mem_7Qm4",
"service_code": "psychotherapy_50",
"scheduled_at": "2026-08-17T09:00:00Z",
"amount": 250000,
"currency": "KES"
}'
{
"object": "eligibility_check",
"status": "eligible",
"reason_codes": ["eligible"],
"amount": { "requested": 250000, "currency": "KES" },
"authorization_required": false,
"remaining_sessions": 6
}Start with documented resources for Practitioners, eligibility, bookings and Claims, then add the next boundary without replacing the first.
Search a license-verified network by language, focus and availability.
Availability, Bookings and Session Rooms, across time zones.
Cover checks, pre-authorizations, Claims and remittances with explicit authority at each state.
Released events, signed and retried according to the documented behavior.
Public interfaces at the institutional boundary.
OpenAPI defines the resources, OAuth scopes access, signed Webhooks carry released events, and versioned adapters keep every external mapping explicit.
The API definition, SDKs and command-line tools are public under Apache 2.0. MCP adapts approved capabilities for authorized Sandbox projects and never widens Consent, role or purpose.
The Developer Docs identify the released Webhook events, signature method and retry behavior supported by the canonical API.
1curl https://api.heyrafiki.space/v1/eligibility_checks \
2 -H "Authorization: Bearer $KEY" \
3 -H "Idempotency-Key: elig_2026_08_11_a41" \
4 -d '{
5 "member_reference": "mem_7Qm4",
6 "service_code": "psychotherapy_50",
7 "scheduled_at": "2026-08-17T09:00:00Z",
8 "amount": 350000,
9 "currency": "KES"
10 }'
11
12# 200 OK
13{
14 "id": "elig_3f8",
15 "object": "eligibility_check",
16 "status": "eligible",
17 "reason_codes": ["eligible"],
18 "service": {
19 "code": "psychotherapy_50",
20 "scheduled_at": "2026-08-17T09:00:00Z"
21 },
22 "amount": {
23 "requested": 350000,
24 "currency": "KES",
25 "maximum_per_session": 500000
26 },
27 "authorization_required": false,
28 "remaining_sessions": 6,
29 "coverage_valid_until": "2026-12-31T23:59:59Z",
30 "checked_at": "2026-08-11T12:30:00Z"
31}This carries far more than our own product.
Students book verified Counsellors from a campus portal, with wellbeing trends reported to student services in aggregate only.
Connect approved Screening to a licensed referral path.
Map structured Claims into an adjudication adapter with traceable state changes.