Widgets are small, interactive components that can be embedded in HTML pages to provide a seamless experience for your audience. Hoppscotch offers three types of widgets: links, buttons, and embeds.

Links are the most basic type of widget. They are simply a URL that can be shared with others. You can generate links to your requests in three different formats: raw, HTML, and Markdown.

Buttons

Buttons are a more advanced type of widget. They are a link that can be embedded in HTML or Markdown files. You can customize the button’s appearance and behavior to suit your needs. You can also generate buttons in three different formats: HTML, and Markdown.

Embeds

Embeds are the most advanced type of widget. They are a mini version of Hoppscotch that can be embedded in an HTML page, enabling your audience to interact seamlessly with your API request. You can customize the embed’s appearance and behavior to suit your needs.

Shared requests

Sharing a request does not provide others with access to your request. Instead, it generates a link that can be shared with others. It’s important to note that if a shared request contains any environment variables, proper functionality may be compromised unless the recipient has access to the same environment variables. Therefore, it is advisable to share requests that do not contain environment variables or replace any environment variables with their corresponding values before sharing.

Create a shared request:

Sharing a request in a collection:

  1. Right-click on a saved request within a collection and select ”Share Request“.
  2. Choose between link, button, and embed widgets.
  3. Click on the ”Create” button.
  4. Copy the share link.

Sharing a request in workspace:

  1. Click on the ”Share request” button in drop-down menu next to the ”Save” button.
  2. Choose between link, button, and embed widgets.
  3. Click on the ”Create” button.
  4. Copy the share link.

View your shared requests:

  1. Click on the ”Shared Requests” button in the sidebar.
  2. You will see a list of all your shared requests.
  3. Click on the request to open it in a new tab.
  4. You can also customize the widget, copy the link, or delete the shared request by right-clicking on it or 3-dot menu.