HumanX

Build on HumanX.

Anything you can do in the app, an authorised tool can do through the API, with the same permissions. Plain JSON over HTTPS, one key, and you choose exactly what the key may touch.

Quickstart

  1. Sign in and open Me, Developer.
  2. Create a key. Pick an expiry and either Full access or the permissions you want.
  3. Copy the key straight away. It is shown once.
  4. Send it as a Bearer token.
export HUMANX_KEY=hx_live_...

curl -H "Authorization: Bearer $HUMANX_KEY" \
  https://humanx.life/api/v1/me
{
  "data": {
    "id": "5b7a0f3e-...",
    "first_name": "Rudo",
    "country_code": "ZW",
    "currency": "USD",
    "household_id": "9c1d2e4a-...",
    "auth": { "type": "api_key", "full_access": false, "scopes": ["tasks:write"] }
  }
}

Authentication

Send Authorization: Bearer hx_live_... on every request. A key acts as the person who created it, so it can only see and change what that person can. If their access shrinks, the key's access shrinks with it, on the very next request.

  • Keys are 32 random bytes. We keep only a SHA-256 fingerprint, so we cannot show a key again. Lost one? Rotate it.
  • Paused, revoked and expired keys are rejected with 401 unauthenticated.
  • Never put a key in a web page, a mobile app or a repository. Keep it on a server.
  • The HumanX web app calls the same endpoints with your signed-in session.

Keys and permissions

Every key has either Full access, which means everything you can do including things we add later, or a chosen set of permissions. Each permission is None, Read, or Read and write. Write always includes read. A key that lacks a permission gets 403 insufficient_scope naming the one it needs.

Permissions marked Sensitive cover children's data, documents and payments. You confirm them when you create the key.

You and your family

PermissionWhat it allows
profile:readSee your name, country, currency and settings.
profile:writeChange your name, country, currency and settings.
people:readSee the people in your household, including children, and their birth dates.
people:writeSensitiveAdd, change or remove people in your household, including children.

Education

PermissionWhat it allows
schools:readSearch schools and read their public profiles and fees.
requirements:readRead fee schedules and school lists for each grade.
requirements:writeCreate or change fee schedules and school lists.
checklists:readSee your back-to-school checklists and every item on them.
checklists:writeTick items off, mark them as already owned, or reset them.

Money

PermissionWhat it allows
expenses:readSee the expenses you have recorded.
expenses:writeRecord new expenses.

Life

PermissionWhat it allows
calendar:readSee your family calendar events.
calendar:writeAdd and change calendar events.
tasks:readSee your tasks and their due dates.
tasks:writeAdd tasks, change them and mark them done.
waitlist:writeJoin the waitlist for modules that are coming soon.

Conventions

Format

JSON in and out, snake_case fields, ISO 8601 UTC dates, UUID ids. Money is { "amount_minor": 45000, "currency": "USD" }, where minor units are cents.

Pagination

Lists take page and page_size (up to 100, default 25) and return:

{ "data": [ ... ], "page": 1, "page_size": 25, "total": 112 }

Sorting and filtering

Sort with a comma list, minus for descending, from the fields each endpoint allows. Filter with filter[field]=value. Several values are comma separated. Dates and times also take [gte] and [lte].

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/expenses?sort=-occurred_on&filter[category]=fees,uniform&filter[occurred_on][gte]=2027-01-01"

Rate limits

60 requests a minute per key. Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. Over the limit you get 429 with Retry-After.

Request ids

Every response has an X-Request-Id. Quote it if you contact us.

Errors

Errors are RFC 9457 problem documents with the content type application/problem+json. Branch on code, which is stable. Show detail to people.

HTTP/1.1 403 Forbidden
Content-Type: application/problem+json

{
  "type": "https://humanx.life/problems/insufficient-scope",
  "title": "Insufficient scope",
  "status": 403,
  "code": "insufficient_scope",
  "detail": "This key needs the tasks:write permission.",
  "required_scope": "tasks:write",
  "request_id": "0b9c..."
}
CodeStatusMeaning
unauthenticated401Authentication required
insufficient_scope403Insufficient scope
forbidden403Forbidden
not_found404Not found
validation_failed422Validation failed
rate_limited429Too many requests
internal_error500Something went wrong

Validation errors add an errors list of { field, code, message }.

Endpoints

All paths are under https://humanx.life/api/v1. This list is generated from the same table the API runs on.

Identity

GET/api/v1/me

Get the signed-in user

Returns the user the key acts for, and what the key is allowed to do.

Needs profile:read

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/me"
GET/api/v1/people

List people in your household

Needs people:read

Paginated. Sort: first_name, created_at, birth_date. Filter: relationship.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/people?page=1&page_size=25"
POST/api/v1/people

Add a person to your household

Sensitive. Needs people:write, which is marked sensitive because it covers children's data.

Needs people:write

FieldTypeRequired
first_namestringYes
last_namestringNo
relationshipchild | partner | parent | grandparent | sibling | ward | otherYes
birth_datestringNo
birth_yearintegerNo
curl -X POST -H "Authorization: Bearer $HUMANX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"Tendai","relationship":"child","birth_year":2016}' \
  "https://humanx.life/api/v1/people"

Education

GET/api/v1/schools

Search schools

Published schools. Fee ranges are the compulsory annual total from published requirement sets.

Needs schools:read

Paginated. Search with q. Sort: name, city, last_verified_at. Filter: province, city, level, curriculum, ownership_type, boarding.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/schools?page=1&page_size=25"
GET/api/v1/schools/{id}

Get a school

Needs schools:read

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/schools/<id>"
GET/api/v1/schools/{id}/requirement-sets

List a school's published fee schedules and school lists

Needs requirements:read

Paginated. Sort: academic_year, version. Filter: academic_year, boarding_variant.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/schools/<id>/requirement-sets?page=1&page_size=25"
GET/api/v1/checklists

List your checklists

Needs checklists:read

Paginated. Sort: created_at, academic_year. Filter: person_id, academic_year.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/checklists?page=1&page_size=25"
GET/api/v1/checklists/{id}/items

List the items on a checklist

Needs checklists:read

Paginated. Sort: sort_order, title, due_date. Filter: status, group.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/checklists/<id>/items?page=1&page_size=25"
PATCH/api/v1/checklist-items/{id}

Change a checklist item's status

Needs checklists:write

FieldTypeRequired
statustodo | done | have_it | not_neededYes
curl -X PATCH -H "Authorization: Bearer $HUMANX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"done"}' \
  "https://humanx.life/api/v1/checklist-items/<id>"

Money

GET/api/v1/expenses

List expenses

Needs expenses:read

Paginated. Sort: occurred_on, amount_minor, created_at. Filter: category, person_id, academic_year, term, occurred_on.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/expenses?page=1&page_size=25"
POST/api/v1/expenses

Record an expense

Needs expenses:write

FieldTypeRequired
descriptionstringYes
categoryfees | uniform | stationery | textbooks | boarding | otherYes
amount_minorintegerYes
currencystringNo
occurred_onstringYes
person_iduuidNo
termintegerNo
academic_yearintegerNo
payment_methodstringNo
curl -X POST -H "Authorization: Bearer $HUMANX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"description":"Term 1 fees","category":"fees","amount_minor":45000,"currency":"USD","occurred_on":"2027-01-12"}' \
  "https://humanx.life/api/v1/expenses"

Life

GET/api/v1/calendar/events

List calendar events

Needs calendar:read

Paginated. Sort: starts_at, created_at. Filter: person_id, starts_at.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/calendar/events?page=1&page_size=25"
POST/api/v1/calendar/events

Add a calendar event

Needs calendar:write

FieldTypeRequired
titlestringYes
starts_atdate-timeYes
ends_atdate-timeNo
all_daybooleanNo
locationstringNo
notesstringNo
person_iduuidNo
curl -X POST -H "Authorization: Bearer $HUMANX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Open day","starts_at":"2027-02-05T08:00:00+02:00"}' \
  "https://humanx.life/api/v1/calendar/events"
GET/api/v1/tasks

List tasks

Needs tasks:read

Paginated. Sort: due_at, created_at, title. Filter: status, person_id, due_at.

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/tasks?page=1&page_size=25"
POST/api/v1/tasks

Add a task

Needs tasks:write

FieldTypeRequired
titlestringYes
notesstringNo
due_atdate-timeNo
person_iduuidNo
curl -X POST -H "Authorization: Bearer $HUMANX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Buy school shoes","due_at":"2027-01-08T00:00:00Z"}' \
  "https://humanx.life/api/v1/tasks"
PATCH/api/v1/tasks/{id}

Change a task or mark it done

Needs tasks:write

FieldTypeRequired
titlestringNo
notesanyNo
due_atanyNo
statusopen | doneNo
curl -X PATCH -H "Authorization: Bearer $HUMANX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"done"}' \
  "https://humanx.life/api/v1/tasks/<id>"
POST/api/v1/waitlist

Join or leave a module waitlist

Needs waitlist:write

FieldTypeRequired
module_keystringYes
joinedbooleanNo
curl -X POST -H "Authorization: Bearer $HUMANX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"module_key":"health"}' \
  "https://humanx.life/api/v1/waitlist"

Reference

GET/api/v1/modules

List HumanX modules and their status

Live and coming-soon modules. Coming-soon modules accept waitlist sign-ups.

Needs any valid key

curl -H "Authorization: Bearer $HUMANX_KEY" \
  "https://humanx.life/api/v1/modules"
GET/api/v1/openapi.json

This OpenAPI 3.1 document

Needs no key

OpenAPI

The full contract is an OpenAPI 3.1 document at /api/v1/openapi.json. Import it into Postman, Insomnia or a code generator.