FMIS open API
Read your FMIS data from Power BI, Excel, a ministry platform or your own software. Read only, safe, and under your control.
Icyo ikora
Each FMIS workspace can create API keys. A key lets another system read the workspace's forms, responses, team list, tasks, check-ins, reports, leave, equipment and stock movements. It cannot change anything, and it never returns PIN hashes, salts or ID numbers. The Admin creates and revokes keys in Settings > Open API and webhooks. Cloud sync must be on.
1. Make a key
In FMIS, open Settings, choose New API key, give it a name such as "Power BI", and copy the key. It starts with fmsk_ and is shown only once.
2. Call the API
Send the key in the Authorization header. The address is the cloud server shown next to your key, for example:
curl -H "Authorization: Bearer fmsk_YOUR_KEY" "https://smart-school-cloud-sync.onrender.com/v1/api/fms/submissions?status=APPROVED&limit=100"
Endpoints
| Endpoint | What you get |
|---|---|
GET /v1/api/fms/workspace | Name of the workspace and how many records of each kind it holds |
GET /v1/api/fms/forms | Forms with all their questions |
GET /v1/api/fms/submissions | Responses. Filters: form, status (SUBMITTED, APPROVED, RETURNED, REJECTED), member, since |
GET /v1/api/fms/members tasks checkins reports leaves equipment stockmoves projects | The matching records |
Options
limit(up to 1000) andoffsetpage through long lists. The answer includesnext_offsetwhen there is more.sinceis a time in milliseconds or a date such as2026-11-01. Use it to fetch only what changed.format=csvon/submissionsreturns a spreadsheet-ready file with one column per question.- Photos, audio and signatures are replaced by
[media]. Addmedia=1to include them. - At most 120 requests a minute for each key.
Power BI and Excel
In Excel choose Data > From Web > Advanced, paste the address with format=csv, and add the header Authorization with the value Bearer fmsk_YOUR_KEY. In Power BI use Get data > Web the same way. Refresh whenever you want the latest responses.
A short Python example
import requests
r = requests.get("https://smart-school-cloud-sync.onrender.com/v1/api/fms/submissions",
headers={"Authorization": "Bearer fmsk_YOUR_KEY"}, params={"status": "APPROVED"})
for s in r.json()["data"]:
print(s["id"], s["memberId"], s["values"])
Webhooks
Instead of asking again and again, let FMIS tell you. In Settings choose Set a webhook address (it must start with https://). Each time a response is sent, approved, returned or rejected, FMIS posts a JSON message:
{ "event": "submission.approved", "at": 1793900000000, "workspace": "...",
"submission": { "id": "...", "formId": "...", "memberId": "...", "status": "APPROVED" } }
The message carries an X-FMIS-Signature header: sha256= followed by the HMAC-SHA256 of the body, made with the signing secret shown once when you set the webhook. Check it before you trust a message:
import hmac, hashlib
ok = hmac.compare_digest("sha256=" + hmac.new(secret.encode(), body, hashlib.sha256).hexdigest(), header)
Byiza kumenya
- Keep keys private. If one leaks, revoke it in Settings and it stops working at once.
- The API reads what has reached the cloud. A phone that has not synced yet has not sent its responses.
- Need something else, such as writing data in? Tell us.
