--:--:--Kigali, Rwanda
+250 782 368 555
Accueil / FMIS API

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.

Overview

Ce qu'il fait

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

EndpointWhat you get
GET /v1/api/fms/workspaceName of the workspace and how many records of each kind it holds
GET /v1/api/fms/formsForms with all their questions
GET /v1/api/fms/submissionsResponses. Filters: form, status (SUBMITTED, APPROVED, RETURNED, REJECTED), member, since
GET /v1/api/fms/members tasks checkins reports leaves equipment stockmoves projectsThe matching records

Options

  • limit (up to 1000) and offset page through long lists. The answer includes next_offset when there is more.
  • since is a time in milliseconds or a date such as 2026-11-01. Use it to fetch only what changed.
  • format=csv on /submissions returns a spreadsheet-ready file with one column per question.
  • Photos, audio and signatures are replaced by [media]. Add media=1 to 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)

Bon à savoir

  • 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.

Back to FMIS Ouvrir l'application web

Parlez-nous de votre école, de votre projet de recherche ou de votre organisation.

Demander un devisEnvoyer une demande