Postman and Gostly: choose your mocking workflow

Keep the client and collection tests that work for you. Decide where the mock runs, how you prepare its responses and who owns the test around it.

  • Self-hosted
  • Runs on Docker Compose
  • Built from real API traffic
  • Your test data, your control
  • Use the tests you already run

Gostly as a Postman mock server alternative

Gostly is a self-hosted API mocking tool. It builds its mock library from real API traffic, or from HAR captures and OpenAPI examples you import, then adds the errors, delays, state changes and simulated API time your tests need. In MOCK mode it answers from that library and does not call the upstream API.

14-day Pro trial. Runs on Docker Compose in your environment. See pricing

Choose where the mock runs.

Postman cloud: a hosted endpoint

Use saved collection examples or a deployed JavaScript mock when a hosted endpoint fits the test. Cloud mock documentation

Postman local: a local mock process

Run a JavaScript mock on your machine with the CLI; author or generate the handlers your test needs. Local execution documentation

Gostly self-hosted: a service in your stack

Import a prepared example or record an upstream, then test against your configured Gostly service. Seeding documentation

Already have a collection? Use the import guide

Return a ready order. Check what your client does next.

One shared task · synthetic data

Saved response in orders.postman.json

GET /orders/order_demo_001 → 200

{
  "id": "order_demo_001",
  "status": "ready",
  "total": 42
}

Use the same saved response across these workflows. Send the GET, check its status and parsed body, then assert the application behavior you need—for example, enabling fulfilment only for a ready order.

The collection contains one request and one response example. Its reserved .invalid hostname is a source placeholder. Your client calls the mock endpoint you configure.

Download the synthetic collection

Compare the work around that response.

Preparation, calling and test ownership for the shared saved-response task.
Your decisionPostman cloud mocksPostman local mocksGostly self-hosted
Where the mock runsA hosted Postman endpoint. DocsA JavaScript mock process on the machine running the CLI, including a CI worker. DocsYour self-hosted Gostly stack, with its operator dashboard and service library.
Response inputsSaved collection examples, request history or a deployed JavaScript mock. DocsAuthored or generated JavaScript handlers can use examples, data, state and scenarios. DocsImport saved examples, HAR or OpenAPI, or record exchanges through the proxy. Import guide
Prepare this GETUse the saved response in an HTTP collection to create a collection-based mock. DocsUse the v2.1 collection as input to CLI mock generation, then inspect the generated handler. DocsImport the prepared collection into an example service routed by the /orders path. Review the stored mock and warnings. Worked setup
Call the mockSend this path to the hosted mock URL. Choose its access settings and any needed body/header matching. DocsStart the JavaScript mock and call its listening URL. Serving locally is separate from cloud deployment. DocsSwitch the example service to MOCK, then send the path to your proxy origin. The service route must select the imported library.
Tests and stateKeep assertions and workflow scripts in Collection Runner. Deployed code mocks also have session/shared-state options. Docs · DocsJavaScript mocks support state and failure/delay scenarios; your test still checks the result. DocsUse your own client and test runner. Importing a response does not migrate scripts, authentication helpers or an ordered collection workflow.
What you maintainThe selected examples or handlers, access configuration and the tests that use the endpoint.The generated/authored handlers, local process configuration and the tests that call it.The installed stack, service routing, prepared fixtures, runtime configuration and application assertions.

Accept the result in your own test.

After your client makes the GET, this shared JavaScript assertion checks the response. Run it in your test environment and add the application assertion that matters to you.

Illustrative Node.js assertion · parsed response

import assert from "node:assert/strict";

// Send the GET through your chosen client and mock endpoint.
export async function expectReadyOrder(response) {
  assert.equal(response.status, 200);
  assert.deepEqual(await response.json(), {
    id: "order_demo_001",
    status: "ready",
    total: 42
  });
}
  • Confirm the client called the endpoint and service you intended, using that workflow's access configuration.
  • Check the status and parsed fields, then check the resulting state or action in your application.
  • For a replay test against an upstream you control, also deny live access or check that its request counter did not increase.

Keep mock execution and test execution distinct. A collection runner sends requests and runs tests; a local mock process serves the dependency. Collection CLI docs · Mock CLI docs

Choose a fit, or keep both.

Keep Postman when the workflow already fits

Keep the API client, collection assertions and scripted workflows your team uses. Collection Runner can target selected mocks; changing the dependency need not mean replacing the runner. Runner docs

Choose Gostly for a self-hosted proxy workflow

Use Gostly when you want to operate the stack and control a service library built from imports or upstream traffic. Keep your application and test harness responsible for acceptance.

Use Postman to call a Gostly service

Keep the client and runner, point the requests at your configured Gostly service, and import saved examples as starting fixtures. Scripts, authentication helpers and collection execution remain in your own tools.

Saved examples and recorded traffic are overlapping inputs. Postman's desktop proxy can capture real HTTP/HTTPS exchanges and save responses to a collection when response saving is selected; follow its platform-specific setup. Capture docs

Gostly can import saved examples or record upstream exchanges through its proxy. In either path, inspect the selected response and the transformations before accepting the fixture. A recording's origin alone does not validate your application's behavior.

Include data handling and ongoing operation.

Review the selected data path

Choose the Postman mock's access settings and review the local CLI workflow's reporting/history settings. Local serving alone does not describe every product connection. Access docs · CLI docs

Gostly's self-hosted deployment stores the replay library in its configured database and serving volume. License validation, telemetry settings, upstream routing and configured integrations have separate connection boundaries.

Review source files before import, including headers, authentication values, query values and request/response bodies. The security overview and security model describe the current capture, import and storage stages.

Postman mock server pricing and limits

Postman sets which plans include mock servers, and any limit on their use, in its own terms. Check Postman's pricing for its current plans and its resource usage page for the limits a plan carries.

Use current commercial terms

Compare those terms with Gostly pricing for the supported offer.

Gostly starts with a 14-day Pro trial, no credit card required. A subscription is required after the trial. Include the infrastructure and operation of your self-hosted stack in your decision.

If you want to work through the fit and installation with us, become a design partner.

Sources behind the Postman workflows

Postman statements use the official documentation linked here. Documentation checked 27 October 2026.

Official source documentation

FAQ

Can I keep Postman if I use Gostly?

Yes. Keep the client and tests, configure requests to reach the Gostly service, and decide which responses belong in its library. Importing a collection is a way to reuse response examples, not a replacement for your test runner.

Do I need recorded traffic before trying Gostly?

No. Start with the prepared collection used here. Review the imported route and response, switch the configured service to MOCK and run your own check. Record additional upstream exchanges when that is the input your test needs.

Does importing my collection recreate its workflow?

No. Saved response examples can seed Gostly's library, but scripts, authentication helpers and assertions need their own setup. Missing saved responses can become empty 200 fixtures with warnings, so inspect the import result before relying on it.

Resources

Continue with a supported workflow

Import the saved example

Use the small collection, inspect what carries over and follow the service-routing setup.

Follow the Postman import guide

Record and replay an upstream

Connect your application, build a library from traffic and check the response it uses.

Read record and replay

Review the data boundary

Understand capture, import, storage and configured external connections.

Read the security overview

Optional · Full stack

Train a model to simulate any API or service.

The model learns from the HTTP exchanges between your application and the service, whoever runs it: a payment provider, a partner, another team. Choose the exchanges you have reviewed, train a small adapter on your own compute, and attach the version you choose. Every answer says whether it was stored, retrieved or generated.

  • Full stack
  • Your own compute
  • Reviewed examples

See how a model is trained

  1. 1Choose traffic (current)
  2. 2Train a version
  3. 3Attach adapter

Service + URI filter

ServiceDemo API

URI filter/gostly-demo/anything/*

ExchangesThe ones you reviewed

Try Gostly with the APIs your app calls

Capture an HTTP exchange, build your library and check the result with your application.