SamaySetu API Docs LogoSamaySetu API Docs Logo
SamaySetu API Docsv1.0.0
  • Documentation
  • API Reference
Information
Authentication
Accounts & Access
Academic Structure
Curriculum & Infrastructure
Faculty Management
    Faculty
    Faculty Approvals
      List Pending ApprovalsgetApprove TeacherpostReject Teacherpost
    Availability
Timetable Management
Analytics & System
Security Governance
SamaySetu API Documentation
SamaySetu API Documentation

Faculty Approvals

Review pending verified accounts and approve or reject registrations


List Pending Approvals

GET
https://api.samaysetu.example
/api/teachers/pending-approvals

Returns email-verified teachers awaiting administrative approval.

Required Permission: teacher.approve or teacher.reject (JWT Bearer + scope check).

List Pending Approvals › Responses

OK

​TeacherEntity[]
TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
GET/api/teachers/pending-approvals
curl https://api.samaysetu.example/api/teachers/pending-approvals \ --header 'Authorization: Bearer <token>'
Example Responses
[ { "id": 29, "name": "Aditi Kulkarni", "employeeId": "FAC-1089", "shortName": "ADK", "email": "aditi.kulkarni@mitaoe.ac.in", "phone": "9876504411", "role": "TEACHER", "specialization": "Cloud Computing", "minWeeklyHours": 8, "maxWeeklyHours": 18, "isEmailVerified": true, "isApproved": false, "isActive": false, "isFirstLogin": false, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-07-02T10:05:00Z", "updatedAt": "2026-07-02T10:05:00Z" } ]
json
application/json

Approve Teacher

POST
https://api.samaysetu.example
/api/teachers/{id}/approve

Approves a pending teacher account so the user can sign in.

Required Permission: teacher.approve (JWT Bearer + scope check).

Approve Teacher › path Parameters

id
​integer · int64 · required

Path parameter id.

Approve Teacher › Responses

OK

TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
POST/api/teachers/{id}/approve
curl https://api.samaysetu.example/api/teachers/:id/approve \ --request POST \ --header 'Authorization: Bearer <token>'
Example Responses
{ "id": 29, "name": "Aditi Kulkarni", "employeeId": "FAC-1089", "shortName": "ADK", "email": "aditi.kulkarni@mitaoe.ac.in", "phone": "9876504411", "role": "TEACHER", "specialization": "Cloud Computing", "minWeeklyHours": 8, "maxWeeklyHours": 18, "isEmailVerified": true, "isApproved": true, "isActive": true, "isFirstLogin": false, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-07-02T10:05:00Z", "updatedAt": "2026-07-02T10:05:00Z" }
json
application/json

Reject Teacher

POST
https://api.samaysetu.example
/api/teachers/{id}/reject

Rejects a pending teacher registration with an optional reason.

Required Permission: teacher.reject (JWT Bearer + scope check).

Reject Teacher › path Parameters

id
​integer · int64 · required

Path parameter id.

Reject Teacher › Request Body

string

Reject Teacher › Responses

OK

TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
POST/api/teachers/{id}/reject
curl https://api.samaysetu.example/api/teachers/:id/reject \ --request POST \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data 'Incomplete employee verification document uploaded.'
Example Request Body
Incomplete employee verification document uploaded.
json
application/json
Example Responses
{ "id": 29, "name": "Aditi Kulkarni", "employeeId": "FAC-1089", "shortName": "ADK", "email": "aditi.kulkarni@mitaoe.ac.in", "phone": "9876504411", "role": "TEACHER", "specialization": "Cloud Computing", "minWeeklyHours": 8, "maxWeeklyHours": 18, "isEmailVerified": true, "isApproved": false, "isActive": false, "isFirstLogin": false, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-07-02T10:05:00Z", "updatedAt": "2026-07-02T10:05:00Z" }
json
application/json

FacultyAvailability