# \#mock-server

**URL:** https://community.postman.com/tag/mock-server/293.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Run mock server on localhost](https://community.postman.com/t/run-mock-server-on-localhost/25008)

<div class="topic-metadata">

**Author:** [@flight-geoscientist4](https://community.postman.com/u/flight-geoscientist4)\
**Replies:** 2\
**Last updated:** [March 3, 2026, 11:30am UTC](https://community.postman.com/t/run-mock-server-on-localhost/25008 "2026-03-03T11:30:02Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Running mock server on localhost](https://community.postman.com/t/running-mock-server-on-localhost/12017)

<div class="topic-metadata">

**Author:** [@mdemers](https://community.postman.com/u/mdemers)\
**Replies:** 5\
**Last updated:** [March 3, 2026, 11:23am UTC](https://community.postman.com/t/running-mock-server-on-localhost/12017 "2026-03-03T11:23:44Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Mock matches the wrong example using x-mock-response-name](https://community.postman.com/t/mock-matches-the-wrong-example-using-x-mock-response-name/86133)

<div class="topic-metadata">

**Author:** [@tomaszmosko](https://community.postman.com/u/tomaszmosko)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 10:30am UTC](https://community.postman.com/t/mock-matches-the-wrong-example-using-x-mock-response-name/86133 "2025-10-23T10:30:21Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Unable to reach mock server from yesterday. What could be the issue](https://community.postman.com/t/unable-to-reach-mock-server-from-yesterday-what-could-be-the-issue/84135)

<div class="topic-metadata">

**Author:** [@femila123](https://community.postman.com/u/femila123)\
**Replies:** 8\
**Last updated:** [September 2, 2025, 4:08am UTC](https://community.postman.com/t/unable-to-reach-mock-server-from-yesterday-what-could-be-the-issue/84135 "2025-09-02T04:08:55Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Error: Upstream connect error or disconnect](https://community.postman.com/t/error-upstream-connect-error-or-disconnect/82419)

<div class="topic-metadata">

**Author:** [@mdomingo1028](https://community.postman.com/u/mdomingo1028)\
**Replies:** 0\
**Last updated:** [July 16, 2025, 6:43pm UTC](https://community.postman.com/t/error-upstream-connect-error-or-disconnect/82419 "2025-07-16T18:43:12Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [How to match variable POST data](https://community.postman.com/t/how-to-match-variable-post-data/69600)

<div class="topic-metadata">

**Author:** [@science-geologist-13](https://community.postman.com/u/science-geologist-13)\
**Replies:** 12\
**Last updated:** [October 18, 2024, 4:29pm UTC](https://community.postman.com/t/how-to-match-variable-post-data/69600 "2024-10-18T16:29:50Z")

</div>

I’d like to match responses in a Postman mock server where the requests have a piece of variable data: { "data1": "constant", "data2": "constant", "timestamp": variable\_timestamp } Is it possible to do this, or d…

---

## [End-to-end testing best practices with Postman mock servers](https://community.postman.com/t/end-to-end-testing-best-practices-with-postman-mock-servers/69403)

<div class="topic-metadata">

**Author:** [@david-espi-hernandez](https://community.postman.com/u/david-espi-hernandez)\
**Replies:** 0\
**Last updated:** [October 7, 2024, 5:17pm UTC](https://community.postman.com/t/end-to-end-testing-best-practices-with-postman-mock-servers/69403 "2024-10-07T17:17:28Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [How to Create a Mock Server](https://community.postman.com/t/how-to-create-a-mock-server/69430)

<div class="topic-metadata">

**Author:** [@emmanuelkatto](https://community.postman.com/u/emmanuelkatto)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 1:31pm UTC](https://community.postman.com/t/how-to-create-a-mock-server/69430 "2024-10-08T13:31:52Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Using variables in a mock server url](https://community.postman.com/t/using-variables-in-a-mock-server-url/69368)

<div class="topic-metadata">

**Author:** [@mheinen1988](https://community.postman.com/u/mheinen1988)\
**Replies:** 0\
**Last updated:** [October 7, 2024, 6:37am UTC](https://community.postman.com/t/using-variables-in-a-mock-server-url/69368 "2024-10-07T06:37:52Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Mock server always returning "mockRequestNotFoundError"](https://community.postman.com/t/mock-server-always-returning-mockrequestnotfounderror/63835)

<div class="topic-metadata">

**Author:** [@epablom](https://community.postman.com/u/epablom)\
**Replies:** 3\
**Last updated:** [July 31, 2024, 11:31am UTC](https://community.postman.com/t/mock-server-always-returning-mockrequestnotfounderror/63835 "2024-07-31T11:31:59Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Visualize mock variables values in calls history](https://community.postman.com/t/visualize-mock-variables-values-in-calls-history/63326)

<div class="topic-metadata">

**Author:** [@josecifuentealuma](https://community.postman.com/u/josecifuentealuma)\
**Replies:** 0\
**Last updated:** [July 3, 2024, 2:30am UTC](https://community.postman.com/t/visualize-mock-variables-values-in-calls-history/63326 "2024-07-03T02:30:11Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [502 Bad Gateway NGINX](https://community.postman.com/t/502-bad-gateway-nginx/61290)

<div class="topic-metadata">

**Author:** [@aditi139](https://community.postman.com/u/aditi139)\
**Replies:** 0\
**Last updated:** [May 21, 2024, 1:25pm UTC](https://community.postman.com/t/502-bad-gateway-nginx/61290 "2024-05-21T13:25:19Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Mock Server Timeout after successfully answering 6 requests](https://community.postman.com/t/mock-server-timeout-after-successfully-answering-6-requests/59507)

<div class="topic-metadata">

**Author:** [@gamaldonado](https://community.postman.com/u/gamaldonado)\
**Replies:** 2\
**Last updated:** [April 3, 2024, 7:17am UTC](https://community.postman.com/t/mock-server-timeout-after-successfully-answering-6-requests/59507 "2024-04-03T07:17:34Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Passing Payload to Example in Mock GET Call](https://community.postman.com/t/passing-payload-to-example-in-mock-get-call/59347)

<div class="topic-metadata">

**Author:** [@grubeg](https://community.postman.com/u/grubeg)\
**Replies:** 0\
**Last updated:** [March 28, 2024, 4:52pm UTC](https://community.postman.com/t/passing-payload-to-example-in-mock-get-call/59347 "2024-03-28T16:52:11Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Cannot get value from $queryParams key if key name contains dot(.)](https://community.postman.com/t/cannot-get-value-from-queryparams-key-if-key-name-contains-dot/43285)

<div class="topic-metadata">

**Author:** [@webworm00](https://community.postman.com/u/webworm00)\
**Replies:** 10\
**Last updated:** [February 15, 2023, 7:45am UTC](https://community.postman.com/t/cannot-get-value-from-queryparams-key-if-key-name-contains-dot/43285 "2023-02-15T07:45:58Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Use wildcard in SOAP request body for matching](https://community.postman.com/t/use-wildcard-in-soap-request-body-for-matching/37778)

<div class="topic-metadata">

**Author:** [@science-astronomer-3](https://community.postman.com/u/science-astronomer-3)\
**Replies:** 0\
**Last updated:** [August 2, 2022, 8:41am UTC](https://community.postman.com/t/use-wildcard-in-soap-request-body-for-matching/37778 "2022-08-02T08:41:20Z")

</div>

I have a SOAP based mock-server in postman which accepts and responds with ‘text/xml’ request-responses. I am using x-mock-match-request-body: true header field for the matching. My issue is that in my request body, I w…

---

## [Create/Update request](https://community.postman.com/t/create-update-request/36443)

<div class="topic-metadata">

**Author:** [@weitatbipo](https://community.postman.com/u/weitatbipo)\
**Replies:** 3\
**Last updated:** [June 23, 2022, 8:48am UTC](https://community.postman.com/t/create-update-request/36443 "2022-06-23T08:48:38Z")

</div>

How can we add new request to mock server? i noticed the requests only available upon the mock server creation. Once it’s created, there ain’t a way to add new request when i try to edit the mock server. It’s importa…

---

## [Customizations around dynamic variables in mock server](https://community.postman.com/t/customizations-around-dynamic-variables-in-mock-server/35470)

<div class="topic-metadata">

**Author:** [@material-engineer-20](https://community.postman.com/u/material-engineer-20)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 10:34am UTC](https://community.postman.com/t/customizations-around-dynamic-variables-in-mock-server/35470 "2022-05-19T10:34:52Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [GET response with application/zip as content-type creation](https://community.postman.com/t/get-response-with-application-zip-as-content-type-creation/8005)

<div class="topic-metadata">

**Author:** [@mohdfirdaus.hirmanri](https://community.postman.com/u/mohdfirdaus.hirmanri)\
**Replies:** 5\
**Last updated:** [March 30, 2022, 7:29pm UTC](https://community.postman.com/t/get-response-with-application-zip-as-content-type-creation/8005 "2022-03-30T19:29:02Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Parse query parameter from request update a variable and use the variable in a header of a response postman mock](https://community.postman.com/t/parse-query-parameter-from-request-update-a-variable-and-use-the-variable-in-a-header-of-a-response-postman-mock/31750)

<div class="topic-metadata">

**Author:** [@nordic-zach](https://community.postman.com/u/nordic-zach)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 6:19pm UTC](https://community.postman.com/t/parse-query-parameter-from-request-update-a-variable-and-use-the-variable-in-a-header-of-a-response-postman-mock/31750 "2022-01-20T18:19:49Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [30 Day Challenge - Day 10 Mock Services](https://community.postman.com/t/30-day-challenge-day-10-mock-services/24020)

<div class="topic-metadata">

**Author:** [@danpaul](https://community.postman.com/u/danpaul)\
**Replies:** 4\
**Last updated:** [December 27, 2021, 2:03am UTC](https://community.postman.com/t/30-day-challenge-day-10-mock-services/24020 "2021-12-27T02:03:27Z")

</div>

30 Day Challenge - Day 10 Mock Services Hello, I am attempting to complete the challenge for Day 10 Mock Services. I am following the documentation. I am on step 4, Call the mock again, document states to doing follow…

---

## [Scripted response in mock server](https://community.postman.com/t/scripted-response-in-mock-server/25587)

<div class="topic-metadata">

**Author:** [@lukasmolenaar](https://community.postman.com/u/lukasmolenaar)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 8:21am UTC](https://community.postman.com/t/scripted-response-in-mock-server/25587 "2021-07-16T08:21:09Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Matching POST request BODY](https://community.postman.com/t/matching-post-request-body/5649)

<div class="topic-metadata">

**Author:** [@alanlobeslab](https://community.postman.com/u/alanlobeslab)\
**Replies:** 6\
**Last updated:** [May 27, 2021, 7:15pm UTC](https://community.postman.com/t/matching-post-request-body/5649 "2021-05-27T19:15:55Z")

</div>

Hello, I am using mock-server to test post and get requests. I have created various examples for a get request that match with the query parameter and the correct response is received. However, when using POST requests…

---

## [How to mimic oAuth authentication on a Postman mock server](https://community.postman.com/t/how-to-mimic-oauth-authentication-on-a-postman-mock-server/21218)

<div class="topic-metadata">

**Author:** [@gerhard-finclude](https://community.postman.com/u/gerhard-finclude)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 12:26pm UTC](https://community.postman.com/t/how-to-mimic-oauth-authentication-on-a-postman-mock-server/21218 "2021-03-10T12:26:20Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Trying to overcome Java UnknownHostException when accessing Postman Mock Server](https://community.postman.com/t/trying-to-overcome-java-unknownhostexception-when-accessing-postman-mock-server/19695)

<div class="topic-metadata">

**Author:** [@gary.roussak](https://community.postman.com/u/gary.roussak)\
**Replies:** 3\
**Last updated:** [February 1, 2021, 12:30pm UTC](https://community.postman.com/t/trying-to-overcome-java-unknownhostexception-when-accessing-postman-mock-server/19695 "2021-02-01T12:30:00Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [How postman mock server url is being resolved](https://community.postman.com/t/how-postman-mock-server-url-is-being-resolved/19753)

<div class="topic-metadata">

**Author:** [@praveendvd](https://community.postman.com/u/praveendvd)\
**Replies:** 1\
**Last updated:** [January 30, 2021, 12:53pm UTC](https://community.postman.com/t/how-postman-mock-server-url-is-being-resolved/19753 "2021-01-30T12:53:56Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Can a Postman mock server use examples from the OpenAPI yml?](https://community.postman.com/t/can-a-postman-mock-server-use-examples-from-the-openapi-yml/16303)

<div class="topic-metadata">

**Author:** [@dan.hull](https://community.postman.com/u/dan.hull)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 6:58pm UTC](https://community.postman.com/t/can-a-postman-mock-server-use-examples-from-the-openapi-yml/16303 "2020-09-28T18:58:33Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Can mock server be accessible from outside?](https://community.postman.com/t/can-mock-server-be-accessible-from-outside/11319)

<div class="topic-metadata">

**Author:** [@chchen123](https://community.postman.com/u/chchen123)\
**Replies:** 0\
**Last updated:** [March 12, 2020, 1:48am UTC](https://community.postman.com/t/can-mock-server-be-accessible-from-outside/11319 "2020-03-12T01:48:32Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Pre-response Script for Mock Servers](https://community.postman.com/t/pre-response-script-for-mock-servers/9466)

<div class="topic-metadata">

**Author:** [@ebrockdorff](https://community.postman.com/u/ebrockdorff)\
**Replies:** 1\
**Last updated:** [December 6, 2019, 4:39pm UTC](https://community.postman.com/t/pre-response-script-for-mock-servers/9466 "2019-12-06T16:39:34Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Basic Auth Example Using Mock Server](https://community.postman.com/t/basic-auth-example-using-mock-server/7643)

<div class="topic-metadata">

**Author:** [@Post\_It\_Notes](https://community.postman.com/u/Post_It_Notes)\
**Replies:** 0\
**Last updated:** [September 6, 2019, 3:02am UTC](https://community.postman.com/t/basic-auth-example-using-mock-server/7643 "2019-09-06T03:02:11Z")

</div>

I have created several post request examples that deliver their respective responses when the correct Basic Auth value (as base64) is passed in the header. The problem is that when I make the call to any example path, no…

[Next page](https://community.postman.com/tag/mock-server/293.md?match_all_tags=true&page=1&tags%5B%5D=mock-server)
