> This page is for Postman Docs, version Latest (v12) (default).
> For other versions, use one of these documentation indexes:
> - Latest (v12) (default): https://learning.postman.com/latest-v-12/llms.txt
> - v11: https://learning.postman.com/v11/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# Collection-based mock server tutorials

> Step-by-step tutorials for building a mock server from a collection of saved examples, in the Postman app and with the Postman API.

These step-by-step tutorials walk you through building and using a [mock server from a collection](/docs/design-apis/mock-apis/mock-servers/from-a-collection) of saved examples. You create a collection with sample requests and example responses, then stand up a mock server that returns the matching example for each request, in the Postman app or with the Postman API.

> **Info**
>
> These tutorials cover the collection-based path. To build a code-based [mock](/docs/design-apis/mock-apis/mocks/overview) with custom JavaScript instead, see [Create mocks with JavaScript](/docs/design-apis/mock-apis/mocks/overview).

## Tutorials

* [Mock APIs with response examples](/docs/design-apis/mock-apis/tutorials/mock-with-examples/) — Create a collection, save example responses, and send requests to a mock server built from it.
* [Create and use a mock server using the Postman API](/docs/design-apis/mock-apis/tutorials/mock-with-api/) — Automate mock server setup by mocking a collection with the Postman API.