Skip to main content

Current API

Login

Auth: None Body:
Response: Session token for subsequent authenticated requests. Handler: LoginControllerSessionService::createSession()

Register

Auth: None Body: User details including email, password, firstname, lastname, role, country, and optional fields (DOB, profile picture, address, mobile, DBS, card details). Handler: RegisterControllerRegistrationService::register() Side effects:
  • Creates user, personal details, address, mobile number
  • For tutors: DBS association, Stripe card, subscription
  • Fires Registered event → email verification + internal notifications
  • Auto-creates session (returns token)

Logout

Auth: auth:api Handler: LoginControllerSessionService::destroySession()

Forgot password

Auth: None Body:
Handler: ForgotPasswordController — sends ResetPassword notification (6-minute token expiry).

Delete account

Auth: auth:api Handler: Soft-deletes user. Sends UserDeleted email to hello@tutorbloc.com.

Legacy v1 API

Login

Register

Logout

Forgot password

Email verification

Auth: auth:api Resends email verification notification. Throttled.