Skip to main content

API Reference

Complete REST API endpoint reference for all SyncAD platforms. All endpoints use the base URL https://dev-api.metaonus.in and require a JWT Bearer token (except auth endpoints).

Base URL

https://dev-api.metaonus.in

Platforms

PlatformPrefixApp
Parents App/parent/*Flutter
Teachers App/teacher/*Flutter
Driver App/driver/*Flutter
School Admin/school-admin/*Web (NestJS)

Request Format

All requests use a data wrapper:

POST /parent/student/get-students
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
Content-Type: application/json

{
"data": {
"key": "value"
}
}

Response Format

{
"data": { ... },
"message": "Operation successful"
}

Error Format

{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}

Common Enums

EnumValues
AttendancePRESENT, ABSENT, LATE, LEAVE, HOLIDAY
Leave StatusPENDING, APPROVED, REJECTED, CANCELLED
Leave TypeSICK, CASUAL, EMERGENCY
Boarding Statuswaiting, boarded, alighted, absent, no_show
Trip Statusscheduled, in_progress, paused, completed, cancelled
Trip Typepickup, dropoff
Incident Typevehicle_breakdown, traffic_jam, accident, other

Error Codes

CodeMeaning
SCHOOL_NOT_FOUNDschoolId in JWT does not match any school
STUDENT_NOT_FOUNDStudent ID does not exist in school's DB
DUPLICATE_ENTRYResource already exists
EVALUATION_MODE_READONLYWrite operation attempted in evaluation mode
OTP_EXPIREDOTP TTL (5 min) exceeded
OTP_INVALIDWrong OTP entered
REFRESH_TOKEN_EXPIREDRefresh token older than 7 days
PERMISSION_DENIEDRole lacks required module permission