Endpoints
Health check: database, queue and cache state.
Machine-readable service summary (JSON).
Is a subdomain free, and if not, what to suggest instead.
Create a school, its admin user and a trial subscription.
Email/password sign-in, isolated to the requesting tenant.
The authenticated user (requires a bearer token).
The current user, resolved from the Host header alone.
The signed-in person's visual style and optional welcome-chime choice.
Save the signed-in person's visual style and welcome-chime choice.
Email a 6-digit reset code to this school's account for that email (generic response).
Set a new password with the emailed 6-digit code (generic failure).
Public information for the school on this host.
Plan, limits and renewal date for this school.
The paid plans a school can move itself onto.
Put this school on a paid plan and start a new term.
The modules this school's workspace includes (auth required).
Turn one module on or off for this school (admins only).
This school's classes, each with its streams.
Add a class, optionally with its streams in one go.
Delete a class and the streams inside it.
Add Grade 1-9 with streams, for schools that want it.
Say which CBC band a class sits in.
Attendance marks for this school, filterable by date, class, stream, subject, or learner.
Create or update one class register in a single save.
Present, absent, late, and excused totals for one attendance date.
Assessment strands for one subject in this school.
Add an assessment strand for a subject.
Assessment sub-strands for one strand in this school.
Add an assessment sub-strand.
List this school's CBC assessments, with optional class, subject, stream, or period filters.
Create a CBC assessment for a class and subject.
One assessment and its recorded learner results.
Save a set of learner results for one assessment.
CBC performance-level totals for one assessment.
A learner's CBC assessment report, optionally for one period.
The school's teaching staff, with subjects and classes (administrators and headteachers only - it carries work contact details).
The signed-in user's own teacher profile.
Load a set of sample teachers for the trial: adopts the standard CBC structure only where the school has none, fills the class coverage, and marks every teacher it creates as removable.
Remove every demo teacher and their class assignments, leaving the school's own staff and configuration untouched.
Add a teacher. A login is optional and never created here.
Correct a teacher, or mark them inactive.
Remove a teacher. Refused while a class has them assigned.
Set a teacher's subjects and classes. Replaces, not appends.
Lay out the week's lessons. Equal periods per area unless the school recorded its own, and never one teacher in two classes at once. A dry run unless asked otherwise.
Remove the lessons the builder placed, and only those. Safe to run without checking first.
Fill the gaps where nobody teaches a subject. A dry run unless asked otherwise, and never replaces an assignment the school made.
Remove the assignments the system made, and only those. Safe to run without checking first.
Whether this deployment can send anything, and why not if it cannot. Reveals nothing about the key's value.
Every guardian and whether they may be messaged, with the guardians that cannot be and why.
Record or withdraw a guardian's consent, per channel.
What was sent, refused, failed and never confirmed - the record a fee dispute is settled from.
Send one message to one guardian, with an optional PDF. Refused without recorded consent.
Africa's Talking SMS configuration/status for this school (env or saved credentials).
Save per-school Africa's Talking SMS credentials (admin, encrypted).
Remove per-school Africa's Talking SMS credentials (admin).
Every subject every class offers, and whether anybody teaches it, with ranked suggestions for the gaps.
Who would teach this class and subject, ranked, with reasons. Reads and answers - assigns nothing.
Put a named teacher on one class and subject.
Take the teacher off one class and subject.
What each teacher currently carries. Computed on read.
This school's declared week. Undeclared for most schools.
Declare the week's periods, days and times. Never guessed.
Lay the day out as the CBC timetable runs it: assembly, four lesson blocks around two health breaks, lunch, clubs, dismissal. Editable afterwards.
The school calendar: academic year, term, the dates it opens and closes, which weekdays are teaching days, and the non-teaching days. Undeclared for most schools.
Set the school calendar. What it returns is the authority on which days carry periods; the grid is drawn from it.
One class's week, or the whole school's, as a PDF. Teacher names printed under every lesson; staff only.
The lessons, and the clashes: a class in two places, a teacher in two places, a lesson with nobody to teach it.
Place one lesson on the grid.
Lift one lesson off the grid.
The store shelves, with how many stock lines each holds.
Add the five standard shelves a Kenyan school keeps - Laboratory, Classroom, Library, Office, Computer Lab. Idempotent: what the school already has is left alone.
Name a new shelf - Sports gear, Workshop, Kitchen.
Rename a shelf. The items on it are unchanged.
Remove an empty shelf. Refused while items remain.
The stores ledger: every line with the count the movements sum to, and a low-stock flag where a reorder level is decided and reached.
Start counting a thing. A new line begins empty on purpose.
Rename, re-count, re-shelve, decide a reorder floor, or archive. An item with history is archived, never deleted.
One line's full ledger, newest first, with its balance.
Write one line: purchase (with supplier and cost), issue (to a member of staff or a room), return, or a stocktake adjustment with a note. Issuing more than the ledger holds is refused.
The school's whole ledger, newest first: filter by kind or by stock line, paged against the true size of the filtered ledger.
The four figures the page opens with - stock lines, how many are at or under their reorder level, movements recorded on a day, suppliers - each computed on read, none stored.
Where purchases came from, with how many lines name each.
Correct the address book. The purchases stay pointed here.
Remove the name. The purchases stay with their supplier blank - history does not vanish with an address book tidy-up.
The school's barter agreements, filterable by status.
Create a parent-supplier payment-in-kind agreement. Sets the maximum credit value of stock accepted against fees.
Update credit limit, approval authority, status, or notes.
Receive goods from a barter supplier: posts an inventory purchase and a fee credit in one atomic action, both referencing the agreement.
The bands, pathways and tracks, for building pickers.
CBC timetable lessons-per-week defaults for a band.
This school's learning areas, grouped by CBC band.
Add a learning area of the school's own.
Correct a subject's name or note.
Remove a subject. Refused while a class still offers it.
Remove CBC-adopted subjects not offered by any class (keeps in-use and school-added subjects).
Adopt the national CBC learning areas. Idempotent.
What one class offers, and what it could offer.
Put a subject on a class's timetable.
Put a class's whole CBC band on its timetable at once. Additive; never touches what is already there. Refused for Senior School.
Apply CBC default lessons per week to every offered subject in a class.
Set a subject's periods per week. Null means not set.
Take a subject off one class's timetable.
This school's learners, filterable by class and stream.
Enrol a learner, with their guardians in the same request.
Download the blank Shule Breeze parent/guardian example as PDF or Word. It is not an official NEMIS form or an actual student record.
Generate one current-school learner's NEMIS-style parent/guardian working record from an admission number, as PDF or Word.
Read a .xlsx or .csv roll sheet and report what would happen - which columns were recognised, which children are already on the roll, and what each bad row says. Writes nothing.
A ready-made .xlsx listing the headings the import reads, built from the importer's own alias table.
Import a roll sheet. dry_run defaults to true, which plans it and writes nothing; set it false to enrol. Every row goes through the same enrolment path as the learner form, a child already on the roll is not enrolled twice, and a bad row is reported rather than costing the rest of the file.
One learner, with the people responsible for them.
Remove a learner. Their guardians stay on file.
Plan, status, trial, counts and recent activity in one call.
One box across this school's learners, classes, quotations and people. Kinds the caller's role may not see are not queried.
People in this school (administrators and headteachers only).
Create a direct sign-in account for this school (school administrator only).
Update a school account's access, status, module scope or password (school administrator only).
This school's audit log, newest first (administrators and headteachers only).
Replace colours and logo for this school (full body).
Render a quotation as a PDF from a payload that is not saved. What the editor's live preview loads, so the preview and the download cannot disagree.
WhatsApp a saved quotation to a phone number. Must be told how that person agreed to be messaged, unless the number belongs to a guardian here who has already consented.
Whether this school can store files, and why not if it cannot. Readable by any signed-in user.
A Google sign-in URL for an administrator to authorise the school's own Drive. Administrators only.
Where Google returns the administrator. Public, because a browser lands here; the signed state is what proves the reply belongs to a request this API made.
Disconnect the school's Drive and ask Google to revoke the token. Files already in the folder stay there.
This school's documents, newest first. Metadata only - the bytes are in Google Drive.
Whether file storage is configured, and the size limit. Readable by any signed-in user so a page can explain itself.
Store a document in Drive (staff only). Inline base64, so 4 MB.
Fetch a document's bytes from Drive through this API, so it stays behind the school's own authorisation.
Remove a document from the app and move it to Drive's trash (staff only).
Find or create this school's folder inside the configured Drive root. For checking the wiring.
The quotation designs, preset colours and billing periods the picker offers.
The Shule Breeze example as a fill-in payload, so the first quotation is not eight blank rows.
This school's quotations, newest first, with both totals per row.
Create one and assign its number (administrators only).
One quotation with its lines and totals.
Replace a quotation's contents. The reference number is not among them.
Delete a quotation. Its number is never reissued.
The quotation as a PDF, in the school's logo and colours.
Mark a quotation approved and raise its invoice in one transaction.
Raise an invoice from a quotation without recording an approval.
Record the customer's accept or decline, with who said it and when.
This school's sales invoices, newest first, each with its totals and balance.
Raise a sales invoice directly, when there is no quotation behind it.
One sales invoice with its lines, balance and payments.
The sales invoice as a PDF, in the school's logo and colours.
Number and issue a draft sales invoice.
Void a sales invoice. Its number is never reissued.
Record money against a sales invoice. The invoice is not marked paid by hand.
What is owed, grouped by status, with the overdue count and unapplied cash.
One sales payment and the invoice it settled against.
Void a payment. The row stays as the record; the money stops counting.
The receipt for a payment. JSON rather than a document, with an id-derived number.
A quotation for the customer with no sign-in: the link that was sent to them.
The customer's answer to that link: accepted or declined.
An invoice for the customer with no sign-in: the link that was sent to them.
Upload a logo, resized in the browser first. Identical bytes return the existing asset.
The logo bytes, cached hard (administrators and headteachers only).
What this school can send from, and whose number it is. Never the key.
Store this school's own gateway key, encrypted. Administrators only.
Forget this school's gateway key.
Start a pairing attempt. Answers 501 with an explanation until the gateway's session paths are configured.
The current pairing attempt, for polling. Not the QR.
The pairing payload as an SVG to render.
Detach this school's number.
Send yourself one, to check the number can send.
What this school sells, grouped by section. Feeds the quotation line picker.
Add a service to the catalogue.
Seed the example catalogue. Idempotent, and only ever adds.
Change or retire a catalogue entry.
Retire a catalogue entry, keeping it on past quotations.
Everyone on the payroll, by name. Filter by status, department or a name search. A national ID is personal data and never appears on this list.
Add a member of staff. The employee number is generated for this school when it is left out, counted from the highest already issued rather than a counter, so a restored record cannot collide.
One worker's record in full, including the fields the list omits and the bank and M-Pesa details a payment needs.
Change a worker. Only the fields sent are changed. Linking a login is checked against this school, because a link to somebody else's would hand them another worker's payslip.
Archive a worker. Hides them rather than deleting them: a past run references this row forever, and a payslip that names nobody is not a record.
What this worker is paid on top of basic salary, as a figure or as a percentage of it - the two are different agreements that look identical in a total.
Give an allowance, dated from. It reaches the next calculation from the day it starts, pro-rated across a month it only partly covers.
Amend an allowance. Past runs keep what they were calculated with.
End an allowance from today. The row stays: a payroll history that changes when something is cancelled now is not a history.
The statutory rules in force for this school on a date - theirs where they have one, the platform default where they do not. Nothing here is a literal in the code; a rate that changes is a new row.
Record this school's own reading of one rule. It becomes a new rules version rather than an edit, so a payroll already calculated keeps the figures it was calculated under.
Put the platform default rule set in the database if it is missing. Idempotent, super admin only: one school's officer must not be able to state the platform's reading of the statute.
Calculate a period for everyone active or for named workers, landing in draft. Every rate is read from the rules for that date. A period already calculated is refused by name rather than by constraint, unless it is flagged as an adjustment with a reason.
Runs with the worker's name attached, filterable by period, status or worker.
One run in full: gross, every deduction, employer contributions, and which rule set produced them. This is the review step, and reading it takes the same permission as approving it.
The lines a run is built from - allowances as applied this month, plus any bonus or other deduction somebody added.
Add a bonus or a non-statutory deduction to a draft, and re-derive the totals. A statutory deduction cannot be entered by hand: the table refuses it, because a payslip must not show a figure no rule produced.
Take a line off a draft and re-derive the totals with it gone.
Re-read the rules in force and redo the arithmetic. Drafts only - recalculating an approved run would silently change figures somebody has already agreed to pay.
Hand a draft to an approver. Preparation and approval are separate permissions, and this is where they part.
Agree to pay. Approving a run you prepared yourself is allowed for the school with one administrator, but costs a written reason and is recorded as the self-approval it is.
Send it back to draft, with a reason. Rejection without one is what an audit finds useless: 'it came back' says nothing about what was wrong.
Abandon a run that has not been paid. Anything past payment is a different problem, and cancelling it would hide money that moved.
Start paying an approved run. The payment is created in processing no matter what is passed in - confirmation is a separate act, because 'we meant to pay it' and 'the provider says it was paid' are different facts.
Every payment attempt, with its provider reference or the name of whoever reconciled it.
The only route to paid. M-Pesa and bank need the provider's own reference; cash has no provider, so it needs the person who handed the money over. The schema enforces it, so a local 'mark as paid' cannot commit.
Record a payment that did not go through, with a reason. The run becomes failed rather than sliding back to approved - money attempted and not received is what an approver needs to know.
Issue the slip for an agreed run, snapshotting the figures. A draft payslip would be a statement about numbers nobody has decided yet.
Issued payslips for this school.
My own payslips, and nobody else's. No role check: an employee's right to their own slip does not depend on being given a role, and most workers never are.
One payslip with its figures. The worker it belongs to always may; anybody else has to be payroll staff and entitled to the module.
The payslip as a printable PDF, drawn from the figures frozen onto the slip. Same authorisation as the JSON, because the document must not be readable by somebody the figures are not.
What this school has asked for, newest first. Carries the area vocabulary so the dropdown and the server's validation cannot drift. There is no status on a request and none is planned: only we can say one is planned, and a status nothing moves is worse than none.
Ask for something. Anybody in the school but a parent may file one, with every module switched off included - a school that cannot use the product is the one with the strongest reason to say so.
Withdraw a request this school filed. A hard delete: the row is the record, and a soft delete would leave a withdrawn request visible to whoever reads the table.
The customers this school sends quotations and invoices to (staff only).
Register a customer with required billing contact and address details (staff only).
One customer's contacts, documents, transaction statement, and amount owed (staff only).
Record money received from a customer against their latest quotation or invoice (staff only).
Send a real-time M-Pesa STK push for a customer invoice, never a school fee (staff only).
Correct a customer's details (staff only).
Remove a customer (staff only).
Attendance totals and a date series for the reports dashboard (staff only).
School finance, quotation, and six-month chart figures for the reports dashboard (staff only).
Quotations and invoices available to download, for the Downloads page (staff only).
Answer public school-information or maths questions for website widgets.
List guided assistant capabilities (staff, module-gated).
Run assistant intent from natural text (staff, module-gated, audited).
Download a PDF list of students for a grade/class (staff, module-gated).
Download a PDF summary of remaining/offered learning areas for a class (staff, module-gated).