Mocking with query parameters

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 files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (postman mock generate) and run it (postman mock run). See About mocks and Create a mock.
Working with an AI coding agent? The Postman plugin can build and run mocks for you.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

Hi there
Is it possible to a have a Mock Server to return me the parameters I passed as a part of URL? I need a kind of echoing for my query params.
Thanks

I suggest using Echo or HTTPBin, Postman services to make these kinds of sample calls. Otherwise, it’s possible to dynamically update a mock response based on the query params submitted, but it’s not intended behavior and is hacky.