QuickStart
Embed GetMan in any web page in 3 steps.
1
Add the container
HTML
html
<div id="api-docs" style="height: 100vh"></div>
Give the container an explicit height — GetMan fills it via height: 100%.
2
Load the script
HTML
html
<script src="https://cdn.getman.dev/latest/getman-ui.js"></script> The script injects all required styles and fonts — no separate CSS import needed.
3
Mount
JavaScript
js
GetMan.launch(
document.getElementById('api-docs'),
{ url: 'https://your-api.com/openapi.json' }
); launch returns
a cleanup function — call it to unmount and release all resources.
Framework integration
GetMan works with any framework. Pick yours below.
html
<!DOCTYPE html>
<html>
<head>
<title>My API Docs</title>
</head>
<body>
<!-- Step 1: container -->
<div id="api-docs" style="height: 100vh"></div>
<!-- Step 2: script -->
<script src="https://cdn.getman.dev/latest/getman-ui.js"></script>
<!-- Step 3: mount -->
<script>
GetMan.launch(
document.getElementById('api-docs'),
{ url: 'https://your-api.com/openapi.json' }
);
</script>
</body>
</html> API reference
launch(target, options?) → () => void
| Parameter | Type | Required | Description |
|---|---|---|---|
target | HTMLElement | Yes | DOM element to mount the explorer into. |
options.url | string | No | URL of the OpenAPI spec to load on startup. |
Return value: () => void
— call to unmount the explorer and clean up.
Deep linking
Every endpoint and schema in the explorer has a shareable URL fragment. Append these to any page that embeds GetMan and the explorer will scroll directly to that item on load.
#endpoints/<operationId> Jump to a specific endpoint. #schemas/<Name> Jump to a specific schema.