Authentication

Prev Next

Rocket.Chat’s authentication endpoints are used to log in to workspaces. You can log in with your username and password or through third-party applications such as Google and Facebook. If the call is successful, you receive your userId, a temporary authToken, and your user details.

Once you receive the user ID and authentication token, use these two headers to call other endpoints:

  • x-user-id: Paste your user ID.

  • x-auth-token: Paste the temporary authentication token that was generated.

For further details, see the Authentication API document.