Rocket.Chat’s authentication endpoints allow users to log in to workspaces using either a username and password or third-party providers such as Google and Facebook. After a successful login, the response includes your userId, a temporary authToken, and basic user details.
Once you have your user ID and authentication token, include the following headers when making authenticated API requests:
• x-user-id: Your user ID.
• x-auth-token:The temporary authentication token returned during login.
For more information, refer to the Authentication API documentation.