Rietta API for schools
Use Rietta as your school's LMS without building one: the same functions the website uses, for your own systems.
Authentication
Create keys in Studio → API. Send them on every request:
curl https://training.scribblegreen.com/api/v1/users \ -H "Authorization: Bearer rk_test_…"
Responses are JSON: { "data": … } or { "error": { "code", "message" } }. Each key only reaches its own school.
Sandbox and limits
rk_test_keys work on a separate sandbox copy of your school: test freely, nothing reaches real students. Anyone with a school account can make one.rk_live_keys come with the School / Enterprise plan.- Sandbox keys: 300 calls an hour. Live keys: 1,000 an hour (more on request). Over the limit you get HTTP 429.
Users scope: users
GET/users
Students and teachers. Filter with ?role=student|teacher|facilitator and ?status=active|deactivated.
POST/users
Creates the account (or finds an existing one) and adds it to your school. Teachers can build courses.
{ "email": "ada@school.ng", "name": "Ada Obi", "role": "student", "external_id": "STU-0042" }POST/users/import
Bulk import, Content-Type: text/csv, up to 2,000 rows. Returns per-row errors.
email,name,role,external_id ada@school.ng,Ada Obi,student,STU-0042
PATCH/users/:id
Change name, role, external_id or status.
{ "role": "teacher", "status": "active" }DELETE/users/:id
Deactivates: they keep their records but lose access to the school's courses.
Courses scope: courses
GET/courses
Your school's courses.
POST/courses
New courses are drafts, private to your school.
{ "title": "JSS2 Basic Science", "description": "…", "visibility": "private" }GET/courses/:id
The course with its modules and lessons.
PATCH/courses/:id
Edit details, publish or unpublish, or make public (live keys only).
{ "published": true }POST/courses/:id/modules
Adds a module.
{ "title": "Term 1, Week 1" }POST/courses/:id/lessons
Adds a lesson with notes and an optional file (up to 25 MB).
{ "module_id": "…", "title": "Cells", "body": "## Notes in Markdown", "file": { "name": "cells.pdf", "content_base64": "…" } }Enrolments, cohorts and terms scope: enrolments
GET/enrolments?course_id=&cohort=
Who is enrolled, with due dates and cohort or term labels.
POST/enrolments
Enrols students (free for your school's own courses).
{ "course_id": "…", "user_ids": ["…"], "cohort": "2026/27 Term 1", "due_at": "2026-12-12" }DELETE/enrolments
Ends a student's access to a course.
{ "course_id": "…", "user_id": "…" }Progress and grades scope: progress
GET/progress?course_id=…[&format=csv]
Per student: lessons done, completion, best quiz scores, assignment grades and live-class attendance. CSV for your records system.
Live classes scope: live
POST/live-sessions
Creates a class with its room. Returns the teacher's join link and the students' Rietta link (it logs attendance). Enrolled students get reminders.
{ "course_id": "…", "title": "Week 3 revision", "starts_at": "2026-11-04T10:00:00+01:00", "duration_minutes": 60 }GET/live-sessions?course_id=…
The course's classes and join links.
Webhooks scope: webhooks
GET/webhooks
Your endpoints.
POST/webhooks
Returns the signing secret once.
{ "url": "https://school.example/rietta", "events": ["enrolment.created", "lesson.completed", "assignment.submitted"] }DELETE/webhooks/:id
Removes an endpoint.
Verifying webhooks
Each POST carries X-Rietta-Event and X-Rietta-Signature: sha256=<hex>, the HMAC-SHA256 of the raw body under your endpoint's secret. Answer 2xx within 10 seconds; failures are retried for about a day.
const expected = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");LTI 1.3 and embedding
Open Rietta courses from Moodle, Canvas, Google Classroom or Blackboard: add Rietta as an LTI 1.3 tool (launch, login initiation and keyset URLs are in Studio → API), register your LMS there, and teachers pick courses with deep linking. Students and teachers are signed in from the LMS on first launch. To show a course on your own website, paste its embed code (/embed/courses/<slug>); you can limit which sites may embed it.
Data protection
Rietta processes students' data for your school under the Nigeria Data Protection Act (NDPA). Your school stays the data controller and must hold parents' or guardians' consent for learners under 18. Send only what Rietta needs (a name and an email; no dates of birth). Rietta doesn't market to API-created students, you can deactivate a student through the API, and hello@scribblegreen.com deletes a student's data on request.