Developer documentation
StaffAide Partner API
Connect your own school system to StaffAide: feed timetables, rosters and assignments to staff, and read attendance, lesson notes and welfare logs back.
Introduction
The StaffAide Partner API will let a school that runs its own management software drive the staff-facing app, the same “integrate it yourself” model as the Schoolpedia Partner API, but for teachers and staff instead of the public directory.
You push data in (timetables, class rosters, assignments to publish, staff accounts) so it appears in StaffAide, and you pull data back (attendance teachers marked, lesson notes, clinic and exeat logs, leave requests). Like the Schoolpedia API, it is a server-to-server integration keyed by a secret API key that must only ever be used from your backend.
Authentication
Authentication is identical to the Schoolpedia Partner API. Send the API key issued to your partner organization as a Bearer token on every request (an X-API-Key header is also accepted). A single key can carry StaffAide, ParentAide, and Schoolpedia scopes together.
curl https://api.edcomrade.com/api/v1/partner/v1/staffaide/me \
-H "Authorization: Bearer sk_live_your_key_here"Missing, malformed, revoked, or expired keys (or keys on a suspended partner) are rejected with 401 Unauthorized.
Base URL & responses
All StaffAide endpoints will live under this base URL:
https://api.edcomrade.com/api/v1/partner/v1/staffaideResponses use the same envelope as the rest of the Partner API; your data is always under data:
{
"success": true,
"data": { /* ... */ },
"timestamp": "2026-10-12T10:00:00.000Z"
}Scopes
StaffAide access is gated by two scopes, granted on your key by the Pioneers team:
staffaide:readreads marked attendance, lesson notes, welfare logs, and leave requests.staffaide:writepushes timetables, rosters, assignments, and staff accounts.
Calling a write endpoint with a read-only key returns 403 Forbidden.
Rate limits
The same 60 requests per minute per key limit applies. Over the limit returns 429 Too Many Requests with a retryAfter value in seconds. Sync rosters and timetables in batches rather than one request per row.
Staff & class identifiers
You identify staff and classes with your own stable identifiers: staffRef and classRef, the external IDs your system already uses. On first use we map each one to the matching record on Pioneers (by data agreed during onboarding); after that the mapping is remembered.
A request for an unmatched staffRef or classRef returns 404.
Errors
Errors return a non-2xx status and a descriptive message:
400: invalid/unknown field or malformed payload401: missing, invalid, revoked, or expired key403: missing scope404: unknownstaffReforclassRef429: rate limit exceeded
Upload a timetable
/partner/v1/staffaide/timetablesPublishes a class timetable so its teachers see their periods in StaffAide and parents see it in ParentAide. Each period gives a dayOfWeek (1 = Monday … 7 = Sunday), a 1-indexed period, a subject, and an optional staffRef (the teacher; defaults to the integration actor). A push replaces the class's existing timetable for that academicYear/term. Requires staffaide:write.
curl -X POST https://api.edcomrade.com/api/v1/partner/v1/staffaide/timetables \
-H "Authorization: Bearer sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"classRef": "JHS2-B",
"academicYear": "2025/2026",
"term": "Term 1",
"periods": [
{ "dayOfWeek": 1, "period": 1, "subject": "Mathematics", "staffRef": "TCH-07" },
{ "dayOfWeek": 1, "period": 2, "subject": "English", "staffRef": "TCH-12" }
]
}'{
"success": true,
"data": { "classRef": "JHS2-B", "slots": 2 },
"timestamp": "2026-10-19T09:00:00.000Z"
}Sync a class roster
/partner/v1/staffaide/rostersSets the list of students in a class so teachers can take attendance and post work against it. Students are matched by studentRef: known students are moved into the class, unknown ones are created. academicYear is optional. Requires staffaide:write.
curl -X POST https://api.edcomrade.com/api/v1/partner/v1/staffaide/rosters \
-H "Authorization: Bearer sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"classRef": "JHS2-B",
"academicYear": "2025/2026",
"students": [
{ "studentRef": "STU-00421", "fullName": "Ama Mensah" },
{ "studentRef": "STU-00433", "fullName": "Kofi Boateng" }
]
}'{
"success": true,
"data": { "classRef": "JHS2-B", "created": 1, "updated": 1 },
"timestamp": "2026-10-19T09:00:00.000Z"
}Publish an assignment
/partner/v1/staffaide/assignmentsPublishes an assignment to a class; it appears for the class teachers in StaffAide and for students/parents in ParentAide. classRef, subject, academicYear, term, title and dueDate are required. staffRef (attribute to a teacher; defaults to the integration actor), instructions and maxMarks (default 100) are optional. Requires staffaide:write.
curl -X POST https://api.edcomrade.com/api/v1/partner/v1/staffaide/assignments \
-H "Authorization: Bearer sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"classRef": "JHS2-B",
"subject": "Mathematics",
"academicYear": "2025/2026",
"term": "Term 1",
"title": "Fractions worksheet",
"instructions": "Complete questions 1-20.",
"dueDate": "2026-10-24",
"maxMarks": 20,
"staffRef": "TCH-07"
}'Provision a staff account
/partner/v1/staffaide/staffCreates a staff member so they can sign in to StaffAide. staffRef, fullName, email and employmentType (one of FULL_TIME, PART_TIME, CONTRACT) are required; department and position are optional. Requires staffaide:write.
curl -X POST https://api.edcomrade.com/api/v1/partner/v1/staffaide/staff \
-H "Authorization: Bearer sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"staffRef": "TCH-07",
"fullName": "Yaa Owusu",
"email": "yaa.owusu@school.edu.gh",
"employmentType": "FULL_TIME",
"department": "Science",
"position": "Mathematics Teacher"
}'Get current partner
/partner/v1/staffaide/meReturns your partner identity, scopes, and the school your key is bound to. Useful to verify a key. Requires staffaide:read.
{
"success": true,
"data": {
"partnerId": "abc123",
"partnerName": "Acme Education Group",
"scopes": ["staffaide:read", "staffaide:write"],
"school": { "id": "sch_01", "code": "ACME-001", "name": "Acme International School" }
},
"timestamp": "2026-10-19T09:00:00.000Z"
}Read marked attendance
/partner/v1/staffaide/attendanceReturns attendance that teachers marked in StaffAide, so you can pull it back into your records. Filter by classRef, academicYear, term, and a dateFrom/dateTo range, and paginate with page/limit. Requires staffaide:read.
{
"success": true,
"data": [
{
"className": "JHS2-B",
"date": "2026-10-19",
"studentIdNumber": "STU-00433",
"status": "ABSENT",
"notes": "Unexcused"
}
],
"total": 1,
"page": 1,
"limit": 20,
"timestamp": "2026-10-19T09:00:00.000Z"
}Read lesson notes
/partner/v1/staffaide/lesson-notesReturns lesson notes teachers posted in StaffAide. Filter by classRef, academicYear, or term, and paginate with page/limit. Requires staffaide:read.
{
"success": true,
"data": [
{
"id": "note_123",
"className": "JHS2-B",
"subject": "Mathematics",
"title": "Fractions",
"term": "Term 1",
"createdAt": "2026-10-18T11:00:00.000Z"
}
],
"total": 1,
"page": 1,
"limit": 20,
"timestamp": "2026-10-19T09:00:00.000Z"
}Read clinic & exeat logs
/partner/v1/staffaide/welfareReturns welfare events logged in StaffAide (clinic visits and boarding exeat approvals) so you can keep your own records in sync. Optionally filter by studentRef. Requires staffaide:read.
{
"success": true,
"data": {
"clinicVisits": [
{ "id": "cv_1", "visitedAt": "2026-10-18T09:30:00.000Z", "reason": "Headache" }
],
"exeats": [
{ "id": "ex_1", "status": "APPROVED", "leaveAt": "2026-10-20T12:00:00.000Z" }
]
},
"timestamp": "2026-10-19T09:00:00.000Z"
}List leave requests
/partner/v1/staffaide/leaveReturns staff leave requests and their status. Filter by status (one of PENDING, APPROVED, REJECTED, CANCELLED) and paginate with page/limit. Requires staffaide:read.
{
"success": true,
"data": [
{
"id": "lv_1",
"staffIdNumber": "TCH-07",
"type": "ANNUAL",
"status": "APPROVED",
"startDate": "2026-11-01",
"endDate": "2026-11-05"
}
],
"total": 1,
"page": 1,
"limit": 20,
"timestamp": "2026-10-19T09:00:00.000Z"
}Security best practices
- Keep your key on the server. Never ship it in a mobile or web client.
- Store it in a secret manager or environment variable, not in source control.
- Use a read-only key for any system that only reads attendance or welfare data.
- Rotate keys periodically, and immediately if one may have leaked. Contact us.
- All requests must use HTTPS.
Versioning
Like the rest of the Partner API, StaffAide endpoints are versioned in the path (/partner/v1). Questions or feedback? Get in touch.