<commit_before>---
title: "Setting up a mock server"
page_id: "setting_up_mock"
warning: false
---

Before sending an actual request, front-end developers can create a mock server to simulate each endpoint and its corresponding response in a Postman Collection. Developers can view potential responses, without spinning up a back end.

### Setting up a mock server 

You can create a mock in several ways:

* **New** button
* Launch screen
* [Postman app](/docs/v6/postman/mock_servers/mocking_with_examples){:target="_blank"}
* [Postman API](/docs/v6/postman/mock_servers/mock_with_api){:target="_blank"}
 

**Note**: This topic only covers how to create a mock with the **New** button and the Launch screen. To learn how to create a mock with the [Postman app](/docs/v6/postman/mock_servers/mocking_with_examples){:target="_blank"} or the [Postman API](/docs/v6/postman/mock_servers/mock_with_api){:target="_blank"}, click its link for detailed information.

#### New button

In the header toolbar, click the **New** button.

[![new button](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/HEADER+BAR.png)](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/HEADER+BAR.png)

The Create New tab appears.

[![create screen](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/WS-collection-create-new-screen2-p2.png)](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/WS-collection-create-new-screen2-p2.png)

**Note**: At the bottom, you can select "Show this window at launch" to indicate whether you want the Create New tab to display each time you open Postman.

Click "Mock Server".

Select if you want to mock a new API or an existing or team collection. If you create a new API to mock, you must select a request method and enter the request path, response code, and response body. If you use an existing or team collection to mock, you must select a collection from a list of existing or team collections. 
<commit_msg>Update setting_up_mock.md<commit_after>---
title: "Setting up a mock server"
page_id: "setting_up_mock"
warning: false
---

Before sending an actual request, front-end developers can create a mock server to simulate each endpoint and its corresponding response in a Postman Collection. Developers can view potential responses, without spinning up a back end.

**Setting up a mock server**

* [New button](#new-button)

* [Launch screen](#launch-screen)

* [Editing descriptions of workspaces](#editing-descriptions-of-workspaces)

* [Joining workspaces](#joining-workspaces)

* [Leaving workspaces](#leaving-workspaces)



### Setting up a mock server 

You can create a mock in several ways:

* **New** button
* Launch screen
* [Postman app](/docs/v6/postman/mock_servers/mocking_with_examples){:target="_blank"}
* [Postman API](/docs/v6/postman/mock_servers/mock_with_api){:target="_blank"}
 

**Note**: This topic only covers how to create a mock with the **New** button and the Launch screen. To learn how to create a mock with the [Postman app](/docs/v6/postman/mock_servers/mocking_with_examples){:target="_blank"} or the [Postman API](/docs/v6/postman/mock_servers/mock_with_api){:target="_blank"}, click its link for detailed information.

#### New button

In the header toolbar, click the **New** button.

[![new button](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/HEADER+BAR.png)](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/HEADER+BAR.png)

The Create New tab appears.

[![create screen](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/WS-collection-create-new-screen2-p2.png)](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/WS-collection-create-new-screen2-p2.png)

**Note**: At the bottom, you can select "Show this window at launch" to indicate whether you want the Create New tab to display each time you open Postman.

Click "Mock Server".

Select if you want to mock a new API or an existing or team collection. If you create a new API to mock, you must select a request method and enter the request path, response code, and response body. If you use an existing or team collection to mock, you must select a collection from a list of existing or team collections. 

{'fraction_non_alphanumeric': 0.11150152260482549, 'fraction_numerical': 0.005621925509486999, 'mean_word_length': 4.9636871508379885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1875939', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1263, 'n_words': 454}