# Pocketm8 ## API Docs - Auth > User [Sign In](https://docs.letschat.ch/sign-in-14618604e0.md): Allows users to authenticate using their email and password. Returns a JWT token on success, or prompts for MFA verification if required. If validation fails, a 400 Bad Request error is returned. - Auth > User [Reset Password](https://docs.letschat.ch/reset-password-14622500e0.md): Allows users to reset their password by providing their email. If the email exists, a password reset link is sent. The user can then set a new password using the provided token. - Auth > User [Send SMS Code](https://docs.letschat.ch/send-sms-code-14211774e0.md): This endpoint sends an SMS verification code to a given phone number. The user receives a one-time password (OTP) via SMS. - Auth > User [Verify Code](https://docs.letschat.ch/verify-code-14211791e0.md): This endpoint verifies an SMS code (OTP) sent to a user’s phone number. The user must provide the user id and the OTP received. - Auth > User [Verify Token](https://docs.letschat.ch/verify-token-14212219e0.md): This endpoint verifies provided token. The user must provide the tokenId - Auth > User [Verify Challenge](https://docs.letschat.ch/verify-challenge-14618699e0.md): Validates a multi-factor authentication (MFA) challenge using a session ID, challenge ID, and verification token. Returns success if the challenge is verified, or an error if the token is invalid or expired. - Profile [Get Profile](https://docs.letschat.ch/get-profile-14213895e0.md): This endpoint retrieves the authenticated user’s profile based on the provided authentication token. It returns user details. - Profile [Update Profile](https://docs.letschat.ch/update-profile-14218135e0.md): This endpoint allows an authenticated user to update their profile details. The update is partial, meaning the user can update only specific fields without needing to send the full profile data. - Profile [Update Email](https://docs.letschat.ch/update-email-17621376e0.md): This endpoint allows an authenticated user to update their email address. - Profile [Update Phone](https://docs.letschat.ch/update-phone-17621409e0.md): This endpoint allows an authenticated user to update their phone number. Phone number verification is required before the change takes effect. - Profile [Resend Code](https://docs.letschat.ch/resend-code-14218113e0.md): This endpoint resends an OTP (One-Time Password) via SMS in order to finish phone update process. It is useful when a user did not receive the initial OTP or when the previous OTP has expired. - Profile [Update Avatar](https://docs.letschat.ch/update-avatar-14214153e0.md): This endpoint allows an authenticated user to update their profile avatar. The avatar payload must be compatible with aaavatars project. - Profile [Verify Code](https://docs.letschat.ch/verify-code-14218124e0.md): This endpoint verifies an SMS code (OTP) sent to a user’s phone number. The user must provide phone number and the OTP received. - Users [Get Users](https://docs.letschat.ch/get-users-15306879e0.md): Returns a list of users. The response is filtered based on the authenticated user’s role — some users may be hidden or restricted depending on access permissions. - Contacts [Get Contact](https://docs.letschat.ch/get-contact-16921741e0.md): Returns contact information. Room field is optional. - Contacts [Get Contacts](https://docs.letschat.ch/get-contacts-16564882e0.md): Returns a list of contacts - Tasks [Create Task](https://docs.letschat.ch/create-task-15307463e0.md): Create task or metting entry - Tasks [Delete Task](https://docs.letschat.ch/delete-task-15307854e0.md): Deletes a task identified by its ID. - Tasks [Update Task](https://docs.letschat.ch/update-task-15308640e0.md): Updates a task identified by its ID. - Tasks [Update Task Status](https://docs.letschat.ch/update-task-status-18474959e0.md): Updates a task status identified by its ID. - Tasks [Get Task](https://docs.letschat.ch/get-task-15308805e0.md): Returns detailed information about a specific task by its ID - Tasks [Get Tasks](https://docs.letschat.ch/get-tasks-15308899e0.md): Returns a list of tasks. The response is filtered based on the authenticated user’s role — some tasks may be hidden or restricted depending on access permissions. - Relations [Task Edit](https://docs.letschat.ch/task-edit-15309245e0.md): Get all available relations for editing a task. - Relations [File Edit](https://docs.letschat.ch/file-edit-15698007e0.md): Get all available relations for editing a task. - Files [Get File](https://docs.letschat.ch/get-file-15697603e0.md): Get single file - Files [Get Files](https://docs.letschat.ch/get-files-15697710e0.md): - Files [Upload File](https://docs.letschat.ch/upload-file-15697645e0.md): - Files [Delete File](https://docs.letschat.ch/delete-file-15697729e0.md): - Files [Update File](https://docs.letschat.ch/update-file-15697748e0.md): - Avatars [Upload Avatar file](https://docs.letschat.ch/upload-avatar-file-17175824e0.md): Uploads a new avatar image for the authenticated user. Accepts: 'image/png', 'image/jpeg', 'image/jpg' mime types via multipart/form-data. - Integrations > Matrix > Files [Link File](https://docs.letschat.ch/link-file-18534826e0.md): Links a Matrix media resource to the Pocketm8 system. The resource will be available as a Pocketm8-managed file. - Integrations > Matrix > Files [Unlink File](https://docs.letschat.ch/unlink-file-18534852e0.md): This action removes the association between the Matrix media resource and the Pocketm8 file registry. The original media file remains accessible in Matrix, but it will no longer appear in the Pocketm8 file list.