Rocket.Chat provides authentication endpoints that enable users to sign in to a workspace using either a username and password or supported third-party identity providers such as Google and Facebook.
A successful login response returns the following:
user-id: The unique identifier for the authenticated user.authToken: A temporary authentication token.Basic user details: Additional information associated with the user account.
To make authenticated API requests, include these headers with every request:
x-user-id: The authenticated user’s ID.x-auth-token: The temporary authentication token issued during login.
For additional details, see the Authentication API documentation.