Step 1: Register Yourself as a User
    • Dark
      Light
    • PDF

    Step 1: Register Yourself as a User

    • Dark
      Light
    • PDF

    Article summary

    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.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.