Widgets
Embed Hoppscotch in your website.
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
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 two 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:
- Right-click on a saved request within a collection and select “Share Request”.
- Choose between link, button, and embed widgets.
- Click on the “Create” button.
- Copy the share link.
Sharing a request in workspace:
- Click on the “Share request” button in drop-down menu next to the “Save” button.
- Choose between link, button, and embed widgets.
- Click on the “Create” button.
- Copy the share link.
View your shared requests:
- Click on the “Shared Requests” button in the sidebar.
- You will see a list of all your shared requests.
- Click on the request to open it in a new tab.
- You can also customize the widget, copy the link, or delete the shared request by right-clicking on it or 3-dot menu.
Was this page helpful?