- Insights Dashboard: Gain valuable insights into platform usage.
- Manage Users: Handle user-related actions, such as inviting, elevating admins, and deleting users.
- Manage Workspaces: Create, edit, and delete workspaces while managing workspace-specific details and user memberships.
Dashboard
The Dashboard section provides an overview of essential metrics and statistics regarding users, workspaces, and activity. This snapshot allows you to track the usage and performance of your platform. Get insights into your organization’s usage of Hoppscotch.- Number of Users: Monitor the count of registered users.
- Number of Workspaces: Keep track of the total number of workspaces.
- Number of Requests: Measure the volume of requests made by your organization.
- Number of Collections: Track the quantity of collections within the platform.
Manage users
The Users section empowers you to effectively control user-related actions. It streamlines the process of user management, making it simple to oversee the user base.In Hoppscotch Community Edition, any user can create an account and use the platform.
- User List: View a comprehensive list of all users on your platform.
- Invite Users: Send invitations to new users, welcoming them to the platform.
- Admin Privileges: Elevate users to administrative roles for increased permissions.
- User Deletion: Delete users when necessary.
Invite Users
Admins can invite new users to their Hoppscotch instance. Depending on whether SMTP is configured, the process differs slightly.With SMTP
When SMTP is enabled from the Admin Dashboard and the required SMTP configurations are correctly set, follow these steps to invite a new user:- Go to the Users section within the Admin Dashboard.
- Select the Invite User button to open the invitation modal.
- Enter the email address of the user you want to invite and click Add User to send an invitation.
- An email containing an invite link (
http://localhost:3000
) will be sent to the invitee. They can use this link to log in to the Hoppscotch web app. - Alternatively, you can copy the invite link and share it through other platforms with the new user. Make sure the user signs in using the email address specified during the invitation process.
Without SMTP
If SMTP is disabled from the Admin Dashboard, the invitation process is slightly different:- Go to the Users section within the Admin Dashboard.
- Select the Invite User button to open the invitation modal.
- Enter the email address of the user you want to invite and click Add User.
- An invite link (
http://localhost:3000
) will be generated and displayed. Copy this link and share it with the user via your preferred communication channel. Make sure the user signs in to Hoppscotch using the same email address you provided during the invitation.
Pending Invites
Within the Users section, admins can view a list of all users who have been invited but have not yet joined the organization. To access this list, simply click on the Pending Invites button next to “Invite User”. Here, you’ll see all the invitations you’ve sent, along with details such as:- Invitee Email: The email address to which the invite was sent.
- Invited By: The email address of the user who sent the invitation
- Invited on: The date and time when the invitation was sent.
- Copy Invite Link: If you need to resend the invitation, you can easily
copy
the invite link and share it with the user via any communication platform. - Revoke Invitation: If you wish to cancel an invitation, click the
Revoke Invitation
button next to the specific user invite in the Action column. This will remove the pending invite from the list and prevent the user from accessing your Hoppscotch instance using that link.
Manage Workspaces
In the Manage Workspace section, you can efficiently handle workspace-related operations, ensuring that collaborations and projects run smoothly.- Workspace Creation: Establish new workspace tailored to specific projects or departments.
- Workspace Editing: Modify workspace details and configurations as needed.
- Workspace Deletion: Disband workspaces that are no longer relevant.
- User Memberships: View and manage the users associated with each workspace.
Infra-tokens
InfraTokens are special UUID tokens that provide a secure way for admins to interface with Self-Hosted APIs. They are exclusively accessible to admins, ensuring that only authorized personnel can manage sensitive operations. Unlike Personal Access Tokens, which are tied to individual users, InfraTokens are scoped at the instance level, granting access to all admins within the instance.Generate an InfraToken
Follow these steps to create a new InfraToken:- After logging into your Self-Hosted instance using your admin credentials, go to Settings > Infra Tokens in your Admin Dashboard.
- Click Generate new token.
- Enter a title for the token and select an expiration date. Available options include 7 days, 30 days, 60 days, 90 days, or no expiry.
- Confirm creation. The new InfraToken will be displayed once — copy it securely to your clipboard for immediate use.
- To delete a token, return to the Infra Tokens section and remove it.
The details of the admin who created the InfraToken are stored for audit purposes. All admins can view and manage these tokens.
How to use InfraTokens
InfraTokens are used as Bearer tokens. When making requests to the User Management APIs, include theInfraToken
in the Authorization
header as follows:
APIs for User Management
The RESTful APIs designed for User Management enable admins to perform a wide range of user-related actions, such as inviting new users, deleting existing ones, and updating user details. These APIs provide admins with the ability to efficiently manage user accounts and permissions. The table below introduces nine key APIs that give admins greater control over user management.User Activity | Description | Method | Endpoint |
---|---|---|---|
Invite a New User | Allows admins to invite a new user to the instance. | POST | <base-url>/v1/infra/user-invitations |
View Pending Invites | Retrieves a list of all pending invites sent to new users. | GET | <base-url>/v1/infra/user-invitations |
Delete Pending Invites | Enables admins to delete specific pending invites using their Email ID. | DELETE | <base-url>/v1/infra/user-invitations |
View All Users | Provides a list of all users in the instance. | GET | <base-url>/v1/infra/users |
View a Particular User | Fetches details of a specific user in the instance by their User ID. | GET | <base-url>/v1/infra/users/{uid} |
Delete an existing User | Enables admins to delete an existing user from the instance by their User ID. | DELETE | <base-url>/v1/infra/users/{uid} |
Update User Details | Allows admins to update the details of an existing user. | PATCH | <base-url>/v1/infra/users/{uid} |
Manage Admin Status | Enables admins to add or remove admin status for an existing user. | PATCH | <base-url>/v1/infra/users/{uid}/admin-status |
Fetch User’s involvement in Workspaces | Retrieves workspace details that a user is part of, including their role. | GET | <base-url>/v1/infra/users/{uid}/workspaces |
To interact with the User Management APIs, ensure that your backend service is running, either on your local machine or on a server. The API documentation is accessible at the
/api-docs
endpoint relative to your backend service URL. For example, if your backend is running locally, you can access the API docs at http://localhost:3170/api-docs. You can also retrieve the OpenAPI v3 JSON format at http://localhost:3170/api-docs-json.Server Settings
In the Server Settings section, you have the ability to both view and edit the environment variables that were configured during the setup of your self-hosted instance.Configurations
- Configure Authentication Providers: Customize authentication providers, including Google, Microsoft, GitHub, and email, directly from the settings page.
- Configure SMTP Settings: Set up your SMTP settings for seamless email integration.
-
History Configurations:
Control the logging of request history for all users with a simple toggle option.
- When enabled: Request history is visible in the Hoppscotch app, and new entries are actively logged and stored in the database.
- When disabled: Request history is hidden from the Hoppscotch app, and no new request logs are written to the database.
- Data sharing: Enable or disable anonymous data sharing to help improve Hoppscotch. Learn more about the metrics collected.
- Reset Configurations: If needed, reset your configurations back to their original state.
Hard Reset Configurations
If you need to perform a hard reset of the server configurations, execute the following command in your terminal to reset all your environment variables:<db_container_id>
with the actual ID of your Docker container.