To access the Rocket.Chat API, you need to log in using your username and password. This authentication method allows you to interact securely with the Rocket.Chat server and perform actions on behalf of the authenticated user.
Upon successful authentication, the API will provide an authentication token (authToken) and a unique user identifier (userId) as part of the JSON response. These values should be used as headers in subsequent requests to protected endpoints that require authentication.
The authTokenis passed as X-Auth-Token header, while the userId as X-User-Id header.
The Rocket.Chat API also supports other forms of authentication using OAuth apps like Facebook, Google, and Twitter. Go to the subsequent endpoint topics to know more.
Last modified 2mo ago
Rocket.Chat versions receive support for six months after release.