GET
/api/meThe signed-in user and their departments
Confirms the session works, and shows which departments you belong to — which is what the department gates on the write endpoints check. Admin and manager roles pass every gate regardless.
200The current user.
userobjectoptional
departmentsarray<object>optional
Only the ACTIVE departments assigned to this user. A soft-deleted department disappears from here immediately, which is what removes its tiles from the picker.
401Not authenticated. Sign in first (see the Auth tag).
errorstringrequired
404Not found.
errorstringrequired
500Unexpected server error.
errorstringrequired
Error handling
A 401 is returned: Not authenticated. Sign in first (see the Auth tag). A 404 is returned: Not found. A 500 is returned: Unexpected server error.