- Print
- DarkLight
- PDF
Step 1: Register Yourself as a User
- Print
- DarkLight
- PDF
Many Rocket.Chat endpoints can only be called by users who have accounts on the workspace. These endpoints require user authentication. To test such endpoints, the first step is to register yourself as a user in the sandbox environment.
On the Register User endpoint, enter the required parameters in the Body section of the Try it block. For example,
{
"username": "rogersmith",
"email": "[email protected]", // you can enter any email ID
"pass": "passw0rd",
"name": "" // this parameter is required, but you can enter an empty string.
}
Now, click Try it!
You can see the success response with the details of the user profile you created on the sandbox workspace. Note that this endpoint does not require any authentication. Similarly, you can test endpoints directly which do not require authentication.
On the sandbox environment, you will have the
user
role that has a range of permissions. You cannot change the roles or permissions of users in this environment.
Next, let’s see how to create an authentication token.