The Users API gives platform administrators full control over the user directory. Admins can create accounts for students, examiners, and other admins; search and filter the user list; update profile details; and permanently delete accounts. This page also documents the Analytics endpoint — which provides a platform-wide performance summary — and the Audit Log endpoint, which provides a tamper-evident record of all sensitive actions taken on the platform. All endpoints on this page require theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Saurabh-07586/examplatform/llms.txt
Use this file to discover all available pages before exploring further.
admin role.
GET /api/users
Retrieve a list of all user accounts on the platform. Requires Admin role.Query Parameters
Filter by user role. Accepted values:
student, examiner, admin.Search by name or email address (case-insensitive partial match).
Filter by account status. Accepted values:
active, inactive.Example Request
Example Response
POST /api/users
Create a new user account. Requires Admin role. The newly created user receives a welcome email containing their login credentials. This is the only way to createexaminer and admin accounts — those roles cannot self-register.
Request Body
The user’s full name as it should appear across the platform.
A valid, unique email address. Used for login and all platform communications.
The role to assign to this user. Accepted values:
student, examiner, admin.Required when
role is student. The student’s institutional roll number. Must be unique.Required when
role is student. The student’s official enrollment or registration number.Optional contact phone number.
Optional employee identifier for
examiner accounts. Useful for institutional record-keeping.Example Request
Example Response
PATCH /api/users/:id
Update an existing user’s profile. Requires Admin role. Only send the fields you wish to change; all other fields retain their current values.Path Parameters
The unique identifier of the user to update.
Request Body
Any subset of the fields accepted byPOST /api/users. You may also update status (active or inactive) to enable or disable an account without deleting it.
Example Request
Example Response
DELETE /api/users/:id
Permanently delete a user account. Requires Admin role.Path Parameters
The unique identifier of the user to delete.
Example Request
Response
Returns204 No Content on success with no response body.
GET /api/analytics
Retrieve a platform-wide performance summary. Requires Admin role. This endpoint aggregates submission and exam data to surface key metrics including subject-wise averages, exam status distribution, AI integrity signals, and overall pass/completion rates.Example Request
Example Response
Per-subject breakdown. Each entry contains
subject (string), average_pct (float — mean score percentage), and attempts (integer — total submissions for that subject).Count of exams currently in each status:
live, upcoming, active, and completed.Mean score percentage across all graded submissions platform-wide.
Percentage of graded submissions where the student met or exceeded the passing threshold.
Percentage of assigned exam sessions that were submitted (as opposed to abandoned).
Composite AI proctoring signal (0.0–1.0). Values close to
1.0 indicate low detected anomaly rates across all monitored sessions.GET /api/audit-logs
Retrieve the tamper-evident audit log of sensitive actions performed on the platform. Every significant state change — publishing an exam, creating an admin account, force-submitting a session — is recorded here with a timestamp, actor, and IP address. Requires Admin role.Query Parameters
Filter by action type (e.g.,
exam.publish, admin.create_user, submission.force_submit, user.delete).Filter to show only actions performed by the specified user.
ISO 8601 datetime. Return only log entries at or after this time (e.g.,
"2024-12-01T00:00:00Z").ISO 8601 datetime. Return only log entries at or before this time (e.g.,
"2024-12-31T23:59:59Z").