Auth

Authentication related endpoints.

User login

post
Body
emailstring · emailRequired
passwordstring · min: 8Required
Responses
200

Login successful

application/json
post
/api/auth/login

Create new account

post
Body
emailstring · emailRequired
passwordstring · min: 8Required
rolestring · enumRequiredPossible values:
Responses
post
/api/auth/signup

Request password reset link

post
Body
emailstring · emailRequired
Responses
200

Reset OTP sent

No content

post
/api/auth/forgot-password

No content

Reset user password

post
Body
emailstring · emailRequired
tokenstringRequired
newPasswordstring · min: 8Required
Responses
200

Password reset successful

No content

post
/api/auth/reset-password

No content

Send verification email

post
Body
emailstring · emailRequired
Responses
200

Verification OTP sent

No content

post
/api/auth/verify-email
200

Verification OTP sent

No content

Verify OTP or reset token

post
Body
emailstring · emailRequired
tokenstringRequired
Responses
200

Token verified

No content

post
/api/auth/verify-token

No content

Last updated