Postman Collection
A Postman collection makes it easy to explore the WebberStop API without writing any code. Authentication is handled by a pre-request script, so you set your credentials once and every request just works.
The official WebberStop Postman collection is being prepared and will be published here shortly. In the meantime, you can use the Swagger UI directly from your browser.
Build your own from the OpenAPI spec
You can generate a Postman collection from our OpenAPI 3 spec in two minutes.
Step 1: Download the OpenAPI spec
Open https://portal.webberstop.com/backend/api/docs/administrator and look for the spec URL near the top of the page (usually /backend/api/openapi.json).
Or download directly:
curl -s https://portal.webberstop.com/backend/api/openapi.json > webberstop-api.json
Step 2: Import into Postman
- Open Postman.
- Click Import in the top left.
- Drag
webberstop-api.jsoninto the import dialog. - Choose Postman Collection format.
- Click Import.
Postman generates a collection with every endpoint, organized by tag.
Step 3: Set up environment variables
In Postman, create a new environment with:
| Variable | Initial value | Current value |
|---|---|---|
baseUrl | https://portal.webberstop.com/backend/api | (same) |
email | you@yourcompany.com | (same) |
password | (leave empty) | your password |
token | (leave empty) | (filled by login request) |
Step 4: Add a pre-request script for auto-authentication
At the collection level, add this pre-request script:
const token = pm.environment.get("token");
const tokenExpiry = pm.environment.get("tokenExpiry");
const now = Math.floor(Date.now() / 1000);
if (!token || !tokenExpiry || now > tokenExpiry) {
pm.sendRequest({
url: pm.environment.get("baseUrl") + "/login",
method: "POST",
header: { "Content-Type": "application/json" },
body: {
mode: "raw",
raw: JSON.stringify({
email: pm.environment.get("email"),
password: pm.environment.get("password")
})
}
}, (err, res) => {
if (err) {
console.error("Login failed:", err);
return;
}
const data = res.json();
pm.environment.set("token", data.token);
pm.environment.set("tokenExpiry", now + 7 * 3600);
});
}
This logs in automatically when the token expires, before each request.
Step 5: Use the token in the Authorization header
At the collection level, set Authorization → Bearer Token → {{token}}.
Every request in the collection inherits this, so you can run any endpoint immediately.
Tips
- Keep credentials in the environment, not the collection. Environments are not exported when you share collections.
- Use Postman's "Run collection" feature to chain requests, for example create a VPC then create a tier in that VPC.
- Test in a sandbox account first. Postman makes it easy to fire requests accidentally.
Get help
If you build a useful collection and want to share it with other WebberStop customers, email it to support@webberstop.com and we will consider featuring it here.