SamaySetu API Docs LogoSamaySetu API Docs Logo
SamaySetu API Docsv1.0.0
  • Documentation
  • API Reference
Information
Authentication
Accounts & Access
    Accounts & Users
      Register New TeacherpostVerify EmailgetGet Staff ProfilegetUpdate Staff ProfileputChange PasswordpostCheck Short Name AvailabilitygetCreate Staff AccountpostUpdate Staff AccountputReset Staff PasswordpostBulk Upload Staff (CSV)postDownload Staff CSV Templateget
    Permissions & Roles
    User Access Overrides
Academic Structure
Curriculum & Infrastructure
Faculty Management
Timetable Management
Analytics & System
Security Governance
SamaySetu API Documentation
SamaySetu API Documentation

Accounts & Users

Teacher self-registration (@mitaoe.ac.in), email verification, self-service profile, admin staff provisioning, password resets, and bulk CSV import


Register New Teacher

POST
https://api.samaysetu.example
/auth/register

Self-registers a teacher using an institutional @mitaoe.ac.in email address. Account remains inactive until email verification and administrator approval.

Access: Public (no JWT required).

Register New Teacher › Request Body

RegisterRequest
email
​string · email · minLength: 1 · pattern: .*@mitaoe\.ac\.in$ · required

Must match institutional domain pattern .*@mitaoe\.ac\.in$.

employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
password
​string · minLength: 8 · maxLength: 2147483647 · pattern: ^(?=.*[a-z])(?=.*[A-… · required
departmentId
​integer · int64
phone
​string · minLength: 0 · maxLength: 15
specialization
​string

Register New Teacher › Responses

OK

string
POST/auth/register
curl https://api.samaysetu.example/auth/register \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "name": "Snehal Deshmukh", "employeeId": "FAC-1042", "email": "snehal.deshmukh@mitaoe.ac.in", "phone": "9876500000", "password": "SamplePass@2026", "specialization": "Distributed Systems", "departmentId": 101 }'
Example Request Body
{ "name": "Snehal Deshmukh", "employeeId": "FAC-1042", "email": "snehal.deshmukh@mitaoe.ac.in", "phone": "9876500000", "password": "SamplePass@2026", "specialization": "Distributed Systems", "departmentId": 101 }
json
application/json
Example Responses
Registration successful! Please check your college email to verify your account.
json
application/json

Verify Email

GET
https://api.samaysetu.example
/auth/verify-email

Validates the 24-hour email verification token sent during registration.

Access: Public (no JWT required).

Verify Email › query Parameters

token
​string · required

Verification token sent via email

Verify Email › Responses

OK

string
GET/auth/verify-email
curl 'https://api.samaysetu.example/auth/verify-email?token=<string>'
Example Responses
Email verified successfully! You can now login.
json
application/json

Get Staff Profile

GET
https://api.samaysetu.example
/api/staff/profile

Returns the authenticated staff member's profile record.

Access: Authenticated caller (Authorization: Bearer <token>).

Get Staff Profile › 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
GET/api/staff/profile
curl https://api.samaysetu.example/api/staff/profile \ --header 'Authorization: Bearer <token>'
Example Responses
{ "id": 14, "name": "Aarav Kulkarni", "employeeId": "FAC-1042", "shortName": "ARK", "email": "aarav.kulkarni@mitaoe.ac.in", "phone": "9876500000", "role": "TIMETABLE_COORDINATOR", "specialization": "Operating Systems", "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-06-15T09:10:00Z", "updatedAt": "2026-06-25T14:20:00Z" }
json
application/json

Update Staff Profile

PUT
https://api.samaysetu.example
/api/staff/profile

Updates allowed self-service fields on the authenticated staff member's profile.

Access: Authenticated caller (Authorization: Bearer <token>).

Update Staff Profile › Request Body

StaffProfileUpdateRequest
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
specialization
​string

Update Staff Profile › 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
PUT/api/staff/profile
curl https://api.samaysetu.example/api/staff/profile \ --request PUT \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "phone": "9876500000", "specialization": "Computer Networks", "minWeeklyHours": 8, "maxWeeklyHours": 18 }'
Example Request Body
{ "phone": "9876500000", "specialization": "Computer Networks", "minWeeklyHours": 8, "maxWeeklyHours": 18 }
json
application/json
Example Responses
{ "id": 14, "name": "Aarav Kulkarni", "employeeId": "FAC-1042", "shortName": "ARK", "email": "aarav.kulkarni@mitaoe.ac.in", "phone": "9876500000", "role": "TIMETABLE_COORDINATOR", "specialization": "Computer Networks", "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-06-15T09:10:00Z", "updatedAt": "2026-06-25T14:20:00Z" }
json
application/json

Change Password

POST
https://api.samaysetu.example
/api/staff/change-password

Verifies the caller's current password and updates it to the new password.

Access: Authenticated caller (Authorization: Bearer <token>).

Change Password › Request Body

ChangePasswordRequest
confirmPassword
​string · minLength: 1 · required
currentPassword
​string · minLength: 1 · required
newPassword
​string · minLength: 8 · maxLength: 2147483647 · pattern: ^(?=.*[a-z])(?=.*[A-… · required

Change Password › Responses

OK

string
POST/api/staff/change-password
curl https://api.samaysetu.example/api/staff/change-password \ --request POST \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "currentPassword": "CurrentPass@2026", "newPassword": "NewStrongPass@2026", "confirmPassword": "NewStrongPass@2026" }'
Example Request Body
{ "currentPassword": "CurrentPass@2026", "newPassword": "NewStrongPass@2026", "confirmPassword": "NewStrongPass@2026" }
json
application/json
Example Responses
Password updated successfully
json
application/json

Check Short Name Availability

GET
https://api.samaysetu.example
/admin/api/teachers/check-short-name

Checks whether a teacher short name is already taken within the institution or department.

Required Permission: teacher.read.department or teacher.read.institution (JWT Bearer + scope check).

Check Short Name Availability › query Parameters

shortName
​string · required

Query parameter shortName.

excludeId
​integer · int64

Query parameter excludeId.

Check Short Name Availability › Responses

OK

Availability check payload for teacher or course short names.
ShortNameCheckResponse
available
​boolean · required
message
​string · required
suggestions
​string[]

Alternative short-name candidates when taken.

GET/admin/api/teachers/check-short-name
curl 'https://api.samaysetu.example/admin/api/teachers/check-short-name?shortName=<string>' \ --header 'Authorization: Bearer <token>'
Example Responses
{ "available": true, "message": "Short name is available", "suggestions": [ "ARK1", "AKK" ] }
json
application/json

Create Staff Account

POST
https://api.samaysetu.example
/admin/create-staff

Manually provisions an active, pre-verified @mitaoe.ac.in staff account with first-login password update required. Departmental admins are restricted to their own department and permitted roles.

Create Staff Account › Request Body

ManualStaffRequest
name
​string · required
employeeId
​string · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
email
​string · email · pattern: .*@mitaoe\.ac\.in$ · required
minWeeklyHours
​integer · int32 · min: 1 · required
maxWeeklyHours
​integer · int32 · min: 1 · required
phone
​string
specialization
​string
role
​string · enum
Enum values:
TEACHER
HOD
TIMETABLE_COORDINATOR
DEPARTMENT_ADMIN
Default: TEACHER
departmentId
​integer | null · int64

Create Staff Account › Responses

Staff member provisioned successfully

string
POST/admin/create-staff
curl https://api.samaysetu.example/admin/create-staff \ --request POST \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "name": "Dr. Prajakta Joshi", "employeeId": "EMP1042", "shortName": "PJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876543214", "specialization": "Distributed Systems", "minWeeklyHours": 12, "maxWeeklyHours": 22, "role": "TEACHER", "departmentId": 101 }'
Example Request Body
{ "name": "Dr. Prajakta Joshi", "employeeId": "EMP1042", "shortName": "PJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876543214", "specialization": "Distributed Systems", "minWeeklyHours": 12, "maxWeeklyHours": 22, "role": "TEACHER", "departmentId": 101 }
json
application/json
Example Responses
Staff member created successfully
text
text/plain

Update Staff Account

PUT
https://api.samaysetu.example
/admin/update-staff/{id}

Updates staff profile attributes, active status, department assignment, or academic role within caller authorization bounds.

Update Staff Account › path Parameters

id
​integer · int64 · required

Update Staff Account › Request Body

AdminStaffUpdateRequest
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
departmentId
​integer · int64
email
​string · email
isActive
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string
specialization
​string

Update Staff Account › Responses

Updated staff account details

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
PUT/admin/update-staff/{id}
curl https://api.samaysetu.example/admin/update-staff/:id \ --request PUT \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "name": "Prof. Prajakta Joshi", "employeeId": "EMP1042", "shortName": "PJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876543214", "specialization": "Cloud & Distributed Systems", "minWeeklyHours": 14, "maxWeeklyHours": 24, "departmentId": 101, "isActive": true, "role": "TIMETABLE_COORDINATOR" }'
Example Request Body
{ "name": "Prof. Prajakta Joshi", "employeeId": "EMP1042", "shortName": "PJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876543214", "specialization": "Cloud & Distributed Systems", "minWeeklyHours": 14, "maxWeeklyHours": 24, "departmentId": 101, "isActive": true, "role": "TIMETABLE_COORDINATOR" }
json
application/json
Example Responses
{ "id": 42, "name": "Prof. Prajakta Joshi", "employeeId": "EMP1042", "shortName": "PJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876543214", "minWeeklyHours": 14, "maxWeeklyHours": 24, "isFirstLogin": false, "specialization": "Cloud & Distributed Systems", "isActive": true, "isApproved": true, "role": "TIMETABLE_COORDINATOR", "isEmailVerified": true }
json
application/json

Reset Staff Password

POST
https://api.samaysetu.example
/admin/reset-password/{id}

Dispatches a password-reset email link for an authorized target user (DEPARTMENT_ADMIN, HOD, TIMETABLE_COORDINATOR, or TEACHER). Cannot target ADMIN or SUPER_ADMIN accounts.

Reset Staff Password › path Parameters

id
​integer · int64 · required

Reset Staff Password › Responses

Password reset link emailed

string
POST/admin/reset-password/{id}
curl https://api.samaysetu.example/admin/reset-password/:id \ --request POST \ --header 'Authorization: Bearer <token>'
Example Responses
Password reset link sent to the user's registered email address.
text
text/plain

Bulk Upload Staff (CSV)

POST
https://api.samaysetu.example
/admin/upload-staff

Imports multiple @mitaoe.ac.in staff accounts from a UTF-8 .csv file (max 5 MB) matching the staff template column layout.

Bulk Upload Staff (CSV) › Request Body

file
​string · binary · required

CSV file (.csv, max 5 MB)

Bulk Upload Staff (CSV) › Responses

CSV processed and staff accounts created

string
POST/admin/upload-staff
curl https://api.samaysetu.example/admin/upload-staff \ --request POST \ --header 'Content-Type: multipart/form-data' \ --header 'Authorization: Bearer <token>' \ --form 'file=staff_template.csv'
Example Request Body
{ "file": "staff_template.csv" }
text
multipart/form-data
Example Responses
Successfully created 12 staff members
text
text/plain

Download Staff CSV Template

GET
https://api.samaysetu.example
/admin/download-staff-template

Downloads a sample CSV template (staff_template.csv) with required headers for bulk staff import.

Download Staff CSV Template › Responses

CSV template download

string
GET/admin/download-staff-template
curl https://api.samaysetu.example/admin/download-staff-template \ --header 'Authorization: Bearer <token>'
Example Responses
Name,Employee ID,Short Name,Email,Phone,Specialization,Min Weekly Hours,Max Weekly Hours,Role Prof. Aarav Kulkarni,EMP1001,AK,aarav.kulkarni@mitaoe.ac.in,9876543210,Computer Engineering,12,24,TEACHER Dr. Snehal Deshmukh,EMP1002,SD,snehal.deshmukh@mitaoe.ac.in,9876543211,Algorithms,10,20,HOD
csv
text/csv

AuthenticationPermissions & Roles