# [CLS] User-API ###### tags: `Collidescope` ## Table of Content - [Auth](#auth) - [POST /auth/login](#POST-authlogin) - [POST /auth/logout](#POST-authlogout) - [POST /auth/forgot-password](#POST-authforgot-password) - [POST /auth/reset-password](#POST-authreset-password) - [POST /auth/reset-password/validate](#POST-authreset-passwordvalidate) - [User](#user) - [GET /users/me](#GET-usersme) - [Account-Profiles](#Account-Profiles) - [GET /account-profiles](#GET-account-profiles) ## Auth ### `POST /auth/login` > Status: TODO **Query** > none **Body** ```typescript= { username: string password: string } ``` **Response** ```typescript= { accessToken: string expiredAt: Date } ``` ### `POST /auth/logout` > Status: TODO **Query** > TODO **Body** > TODO **Response** > TODO ### `POST /auth/forgot-password` **Body** ```typescript= { email: string } ``` **Response** ```typescript= { code: 200 message: "success" } ``` ### `POST /auth/reset-password` **Body** ```typescript= { resetPasswordRequestId: UUID token: string password: string } ``` **Response** ```typescript= { code: 200 message: "success" } ``` ### `POST /auth/reset-password/validate` **Note** - สำหรับ check ว่า link reset password ยังสามารถใช้งานได้ **Body** ```typescript= { resetPasswordRequestId: UUID token: string } ``` **Response** ```typescript= { code: 200 message: "success" } ``` **Response Error** ```typescript= { code: 403 message: "token expired or invalid" } ``` ## Users ### `GET /users/me` > Status: TODO **Query** > TODO **Body** > TODO **Response** > TODO ## Account Profiles ### `GET /account-profiles` > Status: TODO **Query** > TODO **Body** > TODO **Response** > TODO