GET
/docs/
Help docs
This page. Every route below returns { success, data } on success or { success, error: { code, message } } on failure, and (other than health checks) requires an Authorization: Bearer <jwt> header.
Core routes
GET /healthGET /db/healthGET /tenant/*POST /payment,POST /payment/webhook
Account & profiles - docs
GET/POST/PATCH /meGET/POST/PATCH /student-profileGET/POST/PATCH /mentor-profile,POST /mentor-profile/availabilityGET /tags,GET /tag-suggestions
Discovery & requests - docs
GET /mentors,GET /mentor-suggestions,GET /mentor/:idGET/POST /interest-requests,GET /interest-request/:idPOST /interest-request/:id/accept|decline|request-more-info|cancel
Connections, ratings & safety - docs
GET /connections,GET /connection/:id,POST /connection/:id/endPOST/GET /ratingsPOST /reports,POST /blocks,DELETE /block/:id
Dashboards & admin - docs
GET /student-dashboard,GET /mentor-dashboardGET /admin/users,PATCH /admin/user/:idGET /admin/reports,PATCH /admin/report/:id
GET
/health
Service health
Returns the service status and deployment timestamp. No authentication required.
Response
{
"service": "sample",
"status": "ok",
"deployed_at": "unknown"
}
GET
/db/health
Database health
Verifies the API can acquire a connection from the MySQL pool and execute a query. Returns 503 if the connection fails.
Response
{
"service": "sample",
"status": "ok",
"deployed_at": null,
"message": "Database connection successful",
"database": "your_db"
}