Skip to content

Auth endpoints

MethodPath (example)DescriptionAuth
POST/auth/loginSign in, obtain tokenNo
POST/auth/registerRegisterNo
POST/auth/forgot-passwordPassword reset emailNo
POST/auth/reset-passwordNew password (with token)No
GET/auth/profileSession profileYes
DELETE/auth/users/:idDelete userYes (usually SUPERADMIN)

Validation (summary)

  • Email format, minimum password length (e.g. 8), trim — see main repo docs/auth-validations.md for details

Example: login

bash
curl -X POST "$API/auth/login" \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","password":"secret"}'

Cere Insight 2.0 documentation