How to Create a Mock Server

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 everyone, My name is Emmanuel Katto. I want to create a mock server in Postman to simulate an API. How do I set this up and what are the key features I should be aware of?

Looking forward to your responses.

Regards,
Emmanuel Katto

Hey @emmanuelkatto :wave:

Welcome to the Postman Community! :postman:

You can get all the details about Mock Servers from our learning center: