Shule Breeze API

Endpoint reference

Endpoints

GET /health Public
Health check: database, queue and cache state.
GET /status Public
Machine-readable service summary (JSON).
GET /api/v1/signup/availability Public
Is a subdomain free, and if not, what to suggest instead.
POST /api/v1/signup/trial Public
Create a school, its admin user and a trial subscription.
POST /api/v1/auth/login Requires auth
Email/password sign-in, isolated to the requesting tenant.
GET /api/v1/auth/me Requires auth
The authenticated user (requires a bearer token).
GET /api/v1/auth/session Requires auth
The current user, resolved from the Host header alone.
GET /api/v1/auth/appearance Requires auth
The signed-in person's visual style and optional welcome-chime choice.
PUT /api/v1/auth/appearance Requires auth
Save the signed-in person's visual style and welcome-chime choice.
POST /api/v1/auth/forgot-password Requires auth
Email a 6-digit reset code to this school's account for that email (generic response).
POST /api/v1/auth/reset-password Requires auth
Set a new password with the emailed 6-digit code (generic failure).
GET /api/v1/tenant Requires auth
Public information for the school on this host.
GET /api/v1/tenant/subscription Requires auth
Plan, limits and renewal date for this school.
GET /api/v1/tenant/plans Requires auth
The paid plans a school can move itself onto.
POST /api/v1/tenant/subscribe Requires auth
Put this school on a paid plan and start a new term.
GET /api/v1/services Public
The modules this school's workspace includes (auth required).
PATCH /api/v1/services/{key} Public
Turn one module on or off for this school (admins only).
GET /api/v1/classes Public
This school's classes, each with its streams.
POST /api/v1/classes Public
Add a class, optionally with its streams in one go.
PATCH /api/v1/classes/{group_id} Public
Rename a class.
DELETE /api/v1/classes/{group_id} Public
Delete a class and the streams inside it.
POST /api/v1/classes/{group_id}/streams Public
Add a stream to a class.
PATCH /api/v1/streams/{stream_id} Public
Rename a stream.
DELETE /api/v1/streams/{stream_id} Public
Delete a stream.
POST /api/v1/classes/standard-cbc Public
Add Grade 1-9 with streams, for schools that want it.
PATCH /api/v1/classes/{group_id}/band Public
Say which CBC band a class sits in.
GET /api/v1/attendance Public
Attendance marks for this school, filterable by date, class, stream, subject, or learner.
POST /api/v1/attendance/bulk Public
Create or update one class register in a single save.
GET /api/v1/attendance/summary Public
Present, absent, late, and excused totals for one attendance date.
GET /api/v1/assessments/strands Public
Assessment strands for one subject in this school.
POST /api/v1/assessments/strands Public
Add an assessment strand for a subject.
GET /api/v1/assessments/sub-strands Public
Assessment sub-strands for one strand in this school.
POST /api/v1/assessments/sub-strands Public
Add an assessment sub-strand.
GET /api/v1/assessments Public
List this school's CBC assessments, with optional class, subject, stream, or period filters.
POST /api/v1/assessments Public
Create a CBC assessment for a class and subject.
GET /api/v1/assessments/{assessment_id} Public
One assessment and its recorded learner results.
POST /api/v1/assessments/{assessment_id}/results Public
Save a set of learner results for one assessment.
GET /api/v1/assessments/{assessment_id}/analysis Public
CBC performance-level totals for one assessment.
GET /api/v1/assessments/learners/{learner_id}/report Public
A learner's CBC assessment report, optionally for one period.
GET /api/v1/teachers Public
The school's teaching staff, with subjects and classes (administrators and headteachers only - it carries work contact details).
GET /api/v1/teachers/me Public
The signed-in user's own teacher profile.
POST /api/v1/teachers/demo Public
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.
DELETE /api/v1/teachers/demo Public
Remove every demo teacher and their class assignments, leaving the school's own staff and configuration untouched.
POST /api/v1/teachers Public
Add a teacher. A login is optional and never created here.
PATCH /api/v1/teachers/{teacher_id} Public
Correct a teacher, or mark them inactive.
DELETE /api/v1/teachers/{teacher_id} Public
Remove a teacher. Refused while a class has them assigned.
PUT /api/v1/teachers/{teacher_id}/assignments Public
Set a teacher's subjects and classes. Replaces, not appends.
POST /api/v1/timetable/build-grid Public
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.
DELETE /api/v1/timetable/build-grid Public
Remove the lessons the builder placed, and only those. Safe to run without checking first.
POST /api/v1/timetable/auto-assign Public
Fill the gaps where nobody teaches a subject. A dry run unless asked otherwise, and never replaces an assignment the school made.
DELETE /api/v1/timetable/auto-assign Public
Remove the assignments the system made, and only those. Safe to run without checking first.
GET /api/v1/messaging/status Public
Whether this deployment can send anything, and why not if it cannot. Reveals nothing about the key's value.
GET /api/v1/messaging/consents Public
Every guardian and whether they may be messaged, with the guardians that cannot be and why.
PUT /api/v1/messaging/consents/{guardian_id} Public
Record or withdraw a guardian's consent, per channel.
GET /api/v1/messaging/deliveries Public
What was sent, refused, failed and never confirmed - the record a fee dispute is settled from.
POST /api/v1/messaging/whatsapp/send Public
Send one message to one guardian, with an optional PDF. Refused without recorded consent.
GET /api/v1/messaging/sms/status Public
Africa's Talking SMS configuration/status for this school (env or saved credentials).
PUT /api/v1/messaging/sms/credentials Public
Save per-school Africa's Talking SMS credentials (admin, encrypted).
DELETE /api/v1/messaging/sms/credentials Public
Remove per-school Africa's Talking SMS credentials (admin).
GET /api/v1/timetable/coverage Public
Every subject every class offers, and whether anybody teaches it, with ranked suggestions for the gaps.
POST /api/v1/timetable/suggest Public
Who would teach this class and subject, ranked, with reasons. Reads and answers - assigns nothing.
POST /api/v1/timetable/assign Public
Put a named teacher on one class and subject.
DELETE /api/v1/timetable/assign Public
Take the teacher off one class and subject.
GET /api/v1/timetable/workload Public
What each teacher currently carries. Computed on read.
GET /api/v1/timetable/shape Public
This school's declared week. Undeclared for most schools.
PUT /api/v1/timetable/shape Public
Declare the week's periods, days and times. Never guessed.
POST /api/v1/timetable/shape/cbc-day Public
Lay the day out as the CBC timetable runs it: assembly, four lesson blocks around two health breaks, lunch, clubs, dismissal. Editable afterwards.
GET /api/v1/timetable/calendar Public
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.
PUT /api/v1/timetable/calendar Public
Set the school calendar. What it returns is the authority on which days carry periods; the grid is drawn from it.
GET /api/v1/timetable/pdf Public
One class's week, or the whole school's, as a PDF. Teacher names printed under every lesson; staff only.
GET /api/v1/timetable/grid Public
The lessons, and the clashes: a class in two places, a teacher in two places, a lesson with nobody to teach it.
POST /api/v1/timetable/slots Public
Place one lesson on the grid.
DELETE /api/v1/timetable/slots/{slot_id} Public
Lift one lesson off the grid.
GET /api/v1/inventory/categories Public
The store shelves, with how many stock lines each holds.
POST /api/v1/inventory/categories/seed-standard Public
Add the five standard shelves a Kenyan school keeps - Laboratory, Classroom, Library, Office, Computer Lab. Idempotent: what the school already has is left alone.
POST /api/v1/inventory/categories Public
Name a new shelf - Sports gear, Workshop, Kitchen.
PATCH /api/v1/inventory/categories/{category_id} Public
Rename a shelf. The items on it are unchanged.
DELETE /api/v1/inventory/categories/{category_id} Public
Remove an empty shelf. Refused while items remain.
GET /api/v1/inventory/items Public
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.
POST /api/v1/inventory/items Public
Start counting a thing. A new line begins empty on purpose.
PATCH /api/v1/inventory/items/{item_id} Public
Rename, re-count, re-shelve, decide a reorder floor, or archive. An item with history is archived, never deleted.
GET /api/v1/inventory/items/{item_id}/movements Public
One line's full ledger, newest first, with its balance.
POST /api/v1/inventory/movements Public
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.
GET /api/v1/inventory/movements Public
The school's whole ledger, newest first: filter by kind or by stock line, paged against the true size of the filtered ledger.
GET /api/v1/inventory/summary Public
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.
GET /api/v1/inventory/suppliers Public
Where purchases came from, with how many lines name each.
POST /api/v1/inventory/suppliers Public
Record a supplier.
PATCH /api/v1/inventory/suppliers/{supplier_id} Public
Correct the address book. The purchases stay pointed here.
DELETE /api/v1/inventory/suppliers/{supplier_id} Public
Remove the name. The purchases stay with their supplier blank - history does not vanish with an address book tidy-up.
GET /api/v1/inventory/barter Public
The school's barter agreements, filterable by status.
POST /api/v1/inventory/barter Public
Create a parent-supplier payment-in-kind agreement. Sets the maximum credit value of stock accepted against fees.
PATCH /api/v1/inventory/barter/{agreement_id} Public
Update credit limit, approval authority, status, or notes.
POST /api/v1/inventory/barter/receive Public
Receive goods from a barter supplier: posts an inventory purchase and a fee credit in one atomic action, both referencing the agreement.
GET /api/v1/subjects/curriculum Public
The bands, pathways and tracks, for building pickers.
GET /api/v1/subjects/lesson-defaults Public
CBC timetable lessons-per-week defaults for a band.
GET /api/v1/subjects Public
This school's learning areas, grouped by CBC band.
POST /api/v1/subjects Public
Add a learning area of the school's own.
PATCH /api/v1/subjects/{subject_id} Public
Correct a subject's name or note.
DELETE /api/v1/subjects/{subject_id} Public
Remove a subject. Refused while a class still offers it.
DELETE /api/v1/subjects/remove-cbc Public
Remove CBC-adopted subjects not offered by any class (keeps in-use and school-added subjects).
POST /api/v1/subjects/adopt-cbc Public
Adopt the national CBC learning areas. Idempotent.
GET /api/v1/classes/{group_id}/subjects Public
What one class offers, and what it could offer.
POST /api/v1/classes/{group_id}/subjects Public
Put a subject on a class's timetable.
POST /api/v1/classes/{group_id}/subjects/apply-band Public
Put a class's whole CBC band on its timetable at once. Additive; never touches what is already there. Refused for Senior School.
POST /api/v1/classes/{group_id}/subjects/apply-default-lessons Public
Apply CBC default lessons per week to every offered subject in a class.
PATCH /api/v1/class-subjects/{link_id} Public
Set a subject's periods per week. Null means not set.
DELETE /api/v1/class-subjects/{link_id} Public
Take a subject off one class's timetable.
GET /api/v1/learners Public
This school's learners, filterable by class and stream.
POST /api/v1/learners Public
Enrol a learner, with their guardians in the same request.
GET /api/v1/learners/nemis-records/example Public
Download the blank Shule Breeze parent/guardian example as PDF or Word. It is not an official NEMIS form or an actual student record.
POST /api/v1/learners/nemis-records/download Public
Generate one current-school learner's NEMIS-style parent/guardian working record from an admission number, as PDF or Word.
POST /api/v1/students/import/preview Public
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.
GET /api/v1/students/import/template Public
A ready-made .xlsx listing the headings the import reads, built from the importer's own alias table.
POST /api/v1/students/import Public
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.
GET /api/v1/learners/{learner_id} Public
One learner, with the people responsible for them.
DELETE /api/v1/learners/{learner_id} Public
Remove a learner. Their guardians stay on file.
GET /api/v1/workspace/overview Public
Plan, status, trial, counts and recent activity in one call.
GET /api/v1/search Public
One box across this school's learners, classes, quotations and people. Kinds the caller's role may not see are not queried.
GET /api/v1/people Public
People in this school (administrators and headteachers only).
POST /api/v1/people Public
Create a direct sign-in account for this school (school administrator only).
PATCH /api/v1/people/{user_id} Public
Update a school account's access, status, module scope or password (school administrator only).
GET /api/v1/activity Public
This school's audit log, newest first (administrators and headteachers only).
PUT /api/v1/tenant/branding Requires auth
Replace colours and logo for this school (full body).
POST /api/v1/quotations/preview/pdf Public
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.
POST /api/v1/quotations/{quotation_id}/send-whatsapp Public
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.
GET /api/v1/drive/status Public
Whether this school can store files, and why not if it cannot. Readable by any signed-in user.
GET /api/v1/drive/connect Public
A Google sign-in URL for an administrator to authorise the school's own Drive. Administrators only.
GET /api/v1/drive/callback Public
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.
DELETE /api/v1/drive/connection Public
Disconnect the school's Drive and ask Google to revoke the token. Files already in the folder stay there.
GET /api/v1/files Public
This school's documents, newest first. Metadata only - the bytes are in Google Drive.
GET /api/v1/files/status Public
Whether file storage is configured, and the size limit. Readable by any signed-in user so a page can explain itself.
POST /api/v1/files Public
Store a document in Drive (staff only). Inline base64, so 4 MB.
GET /api/v1/files/{file_id}/download Public
Fetch a document's bytes from Drive through this API, so it stays behind the school's own authorisation.
DELETE /api/v1/files/{file_id} Public
Remove a document from the app and move it to Drive's trash (staff only).
GET /api/v1/files/folders Public
Find or create this school's folder inside the configured Drive root. For checking the wiring.
GET /api/v1/quotations/templates Public
The quotation designs, preset colours and billing periods the picker offers.
GET /api/v1/quotations/sample Public
The Shule Breeze example as a fill-in payload, so the first quotation is not eight blank rows.
GET /api/v1/quotations Public
This school's quotations, newest first, with both totals per row.
POST /api/v1/quotations Public
Create one and assign its number (administrators only).
GET /api/v1/quotations/{quotation_id} Public
One quotation with its lines and totals.
PUT /api/v1/quotations/{quotation_id} Public
Replace a quotation's contents. The reference number is not among them.
DELETE /api/v1/quotations/{quotation_id} Public
Delete a quotation. Its number is never reissued.
GET /api/v1/quotations/{quotation_id}/pdf Public
The quotation as a PDF, in the school's logo and colours.
POST /api/v1/sales/quotations/{quotation_id}/approve Public
Mark a quotation approved and raise its invoice in one transaction.
POST /api/v1/sales/quotations/{quotation_id}/convert Public
Raise an invoice from a quotation without recording an approval.
POST /api/v1/sales/quotations/{quotation_id}/decision Public
Record the customer's accept or decline, with who said it and when.
GET /api/v1/sales/invoices Public
This school's sales invoices, newest first, each with its totals and balance.
POST /api/v1/sales/invoices Public
Raise a sales invoice directly, when there is no quotation behind it.
GET /api/v1/sales/invoices/{invoice_id} Public
One sales invoice with its lines, balance and payments.
GET /api/v1/sales/invoices/{invoice_id}/pdf Public
The sales invoice as a PDF, in the school's logo and colours.
POST /api/v1/sales/invoices/{invoice_id}/issue Public
Number and issue a draft sales invoice.
POST /api/v1/sales/invoices/{invoice_id}/void Public
Void a sales invoice. Its number is never reissued.
POST /api/v1/sales/invoices/{invoice_id}/payments Public
Record money against a sales invoice. The invoice is not marked paid by hand.
GET /api/v1/sales/receivables Public
What is owed, grouped by status, with the overdue count and unapplied cash.
GET /api/v1/sales/payments/{payment_id} Public
One sales payment and the invoice it settled against.
POST /api/v1/sales/payments/{payment_id}/void Public
Void a payment. The row stays as the record; the money stops counting.
GET /api/v1/sales/payments/{payment_id}/receipt Public
The receipt for a payment. JSON rather than a document, with an id-derived number.
GET /api/v1/sales/public/quotations/{token} Public
A quotation for the customer with no sign-in: the link that was sent to them.
POST /api/v1/sales/public/quotations/{token}/respond Public
The customer's answer to that link: accepted or declined.
GET /api/v1/sales/public/invoices/{token} Public
An invoice for the customer with no sign-in: the link that was sent to them.
POST /api/v1/brand-assets Public
Upload a logo, resized in the browser first. Identical bytes return the existing asset.
GET /api/v1/brand-assets/{asset_id}/raw Public
The logo bytes, cached hard (administrators and headteachers only).
GET /api/v1/whatsapp/status Public
What this school can send from, and whose number it is. Never the key.
PUT /api/v1/whatsapp/credentials Public
Store this school's own gateway key, encrypted. Administrators only.
DELETE /api/v1/whatsapp/credentials Public
Forget this school's gateway key.
POST /api/v1/whatsapp/connect Public
Start a pairing attempt. Answers 501 with an explanation until the gateway's session paths are configured.
GET /api/v1/whatsapp/session Public
The current pairing attempt, for polling. Not the QR.
GET /api/v1/whatsapp/qr Public
The pairing payload as an SVG to render.
POST /api/v1/whatsapp/disconnect Public
Detach this school's number.
POST /api/v1/whatsapp/test-message Public
Send yourself one, to check the number can send.
GET /api/v1/catalogue Public
What this school sells, grouped by section. Feeds the quotation line picker.
POST /api/v1/catalogue Public
Add a service to the catalogue.
POST /api/v1/catalogue/adopt Public
Seed the example catalogue. Idempotent, and only ever adds.
PATCH /api/v1/catalogue/{item_id} Public
Change or retire a catalogue entry.
DELETE /api/v1/catalogue/{item_id} Public
Retire a catalogue entry, keeping it on past quotations.
GET /api/v1/payroll/workers Public
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.
POST /api/v1/payroll/workers Public
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.
GET /api/v1/payroll/workers/{worker_id} Public
One worker's record in full, including the fields the list omits and the bank and M-Pesa details a payment needs.
PATCH /api/v1/payroll/workers/{worker_id} Public
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.
DELETE /api/v1/payroll/workers/{worker_id} Public
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.
GET /api/v1/payroll/workers/{worker_id}/allowances Public
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.
POST /api/v1/payroll/workers/{worker_id}/allowances Public
Give an allowance, dated from. It reaches the next calculation from the day it starts, pro-rated across a month it only partly covers.
PATCH /api/v1/payroll/allowances/{allowance_id} Public
Amend an allowance. Past runs keep what they were calculated with.
DELETE /api/v1/payroll/allowances/{allowance_id} Public
End an allowance from today. The row stays: a payroll history that changes when something is cancelled now is not a history.
GET /api/v1/payroll/rules Public
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.
POST /api/v1/payroll/rules Public
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.
POST /api/v1/payroll/rules/seed Public
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.
POST /api/v1/payroll/runs/calculate Public
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.
GET /api/v1/payroll/runs Public
Runs with the worker's name attached, filterable by period, status or worker.
GET /api/v1/payroll/runs/{run_id} Public
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.
GET /api/v1/payroll/runs/{run_id}/items Public
The lines a run is built from - allowances as applied this month, plus any bonus or other deduction somebody added.
POST /api/v1/payroll/runs/{run_id}/items Public
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.
DELETE /api/v1/payroll/runs/{run_id}/items/{item_id} Public
Take a line off a draft and re-derive the totals with it gone.
POST /api/v1/payroll/runs/{run_id}/recalculate Public
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.
POST /api/v1/payroll/runs/{run_id}/submit Public
Hand a draft to an approver. Preparation and approval are separate permissions, and this is where they part.
POST /api/v1/payroll/runs/{run_id}/approve Public
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.
POST /api/v1/payroll/runs/{run_id}/reject Public
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.
POST /api/v1/payroll/runs/{run_id}/cancel Public
Abandon a run that has not been paid. Anything past payment is a different problem, and cancelling it would hide money that moved.
POST /api/v1/payroll/runs/{run_id}/pay Public
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.
GET /api/v1/payroll/payments Public
Every payment attempt, with its provider reference or the name of whoever reconciled it.
POST /api/v1/payroll/payments/{payment_id}/confirm Public
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.
POST /api/v1/payroll/payments/{payment_id}/fail Public
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.
POST /api/v1/payroll/runs/{run_id}/payslip Public
Issue the slip for an agreed run, snapshotting the figures. A draft payslip would be a statement about numbers nobody has decided yet.
GET /api/v1/payroll/payslips Public
Issued payslips for this school.
GET /api/v1/payroll/me/payslips Public
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.
GET /api/v1/payroll/payslips/{payslip_id} Public
One payslip with its figures. The worker it belongs to always may; anybody else has to be payroll staff and entitled to the module.
GET /api/v1/payroll/payslips/{payslip_id}/pdf Public
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.
GET /api/v1/feature-requests Public
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.
POST /api/v1/feature-requests Public
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.
DELETE /api/v1/feature-requests/{request_id} Public
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.
GET /api/v1/customers Public
The customers this school sends quotations and invoices to (staff only).
POST /api/v1/customers Public
Register a customer with required billing contact and address details (staff only).
GET /api/v1/customers/{customer_id} Public
One customer's contacts, documents, transaction statement, and amount owed (staff only).
POST /api/v1/customers/{customer_id}/payments Public
Record money received from a customer against their latest quotation or invoice (staff only).
POST /api/v1/customers/{customer_id}/stk-push Public
Send a real-time M-Pesa STK push for a customer invoice, never a school fee (staff only).
PATCH /api/v1/customers/{customer_id} Public
Correct a customer's details (staff only).
DELETE /api/v1/customers/{customer_id} Public
Remove a customer (staff only).
GET /api/v1/reports/attendance/summary Public
Attendance totals and a date series for the reports dashboard (staff only).
GET /api/v1/reports/overview Public
School finance, quotation, and six-month chart figures for the reports dashboard (staff only).
GET /api/v1/downloads/overview Public
Quotations and invoices available to download, for the Downloads page (staff only).
POST /api/v1/assistant/ask Public
Answer public school-information or maths questions for website widgets.
GET /api/v1/assistant/capabilities Public
List guided assistant capabilities (staff, module-gated).
POST /api/v1/assistant/chat Public
Run assistant intent from natural text (staff, module-gated, audited).
GET /api/v1/assistant/reports/students-grade-pdf Public
Download a PDF list of students for a grade/class (staff, module-gated).
GET /api/v1/assistant/reports/class-remaining-pdf Public
Download a PDF summary of remaining/offered learning areas for a class (staff, module-gated).

Try it

GET Health check
curl https://api.shulebreeze.co.ke/health
POST Sign up a school (trial)
curl -X POST https://api.shulebreeze.co.ke/api/v1/signup/trial \ -H "Content-Type: application/json" \ -d '{"school_name":"Test School","full_name":"Grace Wanjiku", \ "email":"[email protected]","password":"correct-horse-battery", \ "accept_terms":true}'
GET Current user
curl https://api.shulebreeze.co.ke/api/v1/auth/me \ -H "Authorization: Bearer YOUR_TOKEN"

Notes

Every school is served on its own subdomain of brevansoftwares.co.ke; the API resolves the tenant from the request Host. Interactive OpenAPI docs are at /api/docs.