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 aconfig.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.
I created a new collection with a single request to learn how to use Postman mock servers and, while I managed to successfully make it private, return different examples for a single route depending on query parameters… Everything broke down when attempting to return an example of a request that has a JSON body.
All I’m receiving now from the mock server is the following error:
{
"error": {
"name": "mockRequestNotFoundError",
"message": "Double check your method and the request path and try again.",
"header": "No matching requests"
}
}
Additional data
-
Mock server configuration:
-
GET request:
-
Example:


