# Popular mock servers

> Stateful mocks of popular APIs for your tests and CI.

Popular mock servers is a free directory of stateful mocks of Stripe, OpenAI, Twilio, SendGrid, Amazon S3 and GitHub, which you run next to your code or in CI with the Postman CLI, or call at a hosted URL, without the provider’s account or API key.

Also: mock stripe api, mock openai api, mock twilio api, mock sendgrid api, mock amazon s3 api, mock github api, fake stripe api for testing, public mock api, third party api mock server, test against stripe without api key, sandbox api for testing, mock api for ci, stripe mock for integration tests, mock aws s3 api, mock s3 for testing, fake s3 server, aws s3 mock server for ci, mock twilio sms api, twilio mock server, fake twilio for testing, mock chatgpt api for testing, openai api mock server, sendgrid mock server, mock email api for testing, github api mock server, mock stripe payments api.

## What it does

Testing against a third-party API usually means a sandbox account, keys in CI, data left over from the last run, and the risk of real charges or messages. This page lists stateful mocks of Stripe, OpenAI, Twilio, SendGrid, Amazon S3 and GitHub, maintained by Postman. Run one next to your code or in CI with the Postman CLI, point your client at it, and your tests get the API’s behaviour, its errors and its failure scenarios, with no provider account, no provider key and nothing real at stake. Each one is also hosted, for a quick try.

## When to use it

- You want your tests and CI to run a Stripe, Twilio or SendGrid integration end to end, without a sandbox account or the provider’s keys in CI.
- You need an OpenAI-shaped API whose answers your tests can assert on, without spending tokens.
- You want to test retries and error handling against rate limits, declines and outages on demand.
- You want to run an S3 client or SDK in CI without a bucket or AWS credentials.
- You are building an agent or a tool that opens issues and pull requests, and do not want it touching real repositories.

## What you give it

| Input | Meaning |
| --- | --- |
| Service | Which API to mock — Stripe, OpenAI, Twilio, SendGrid, Amazon S3 or GitHub. Each card has the Postman CLI command that runs it, and opens its docs. |

## What you get back

| Output | Meaning |
| --- | --- |
| A mock running next to your code | `postman mock run` with the mock’s name from its card, such as `postman mock run stripe.mock.postman`, starts the mock on localhost; point your client’s base URL at it. The same mock is also hosted at a public URL. |

## Key terms

- **Mock server** — a stand-in that answers in place of a real API, so client code can be built and tested before, or without, the real one.
- **Stateful mock** — a mock that keeps what you create, so a flow works end to end: a customer created in one request is there in the next.
- **Scenario** — a mode in which the mock fails the way the API does (rate limited, declined, unavailable), chosen per request with the x-mock-scenario header.

## Questions

### What problem does this actually solve?

Testing against a third-party API usually means a sandbox account, keys in CI, data left over from the last run, and the risk of real charges or messages. This page lists stateful mocks of Stripe, OpenAI, Twilio, SendGrid, Amazon S3 and GitHub, maintained by Postman. Run one next to your code or in CI with the Postman CLI, point your client at it, and your tests get the API’s behaviour, its errors and its failure scenarios, with no provider account, no provider key and nothing real at stake. Each one is also hosted, for a quick try.

### How do I use one in my tests or CI?

Run the command on its card to start the mock on your machine, and point your client’s base URL at it. For CI, add it to your repository once with `postman dependency add mock` and the mock’s id from its docs page: the mock’s files are then in the repository, and `postman mock run` on their folder starts it in CI with no Postman sign-in or secrets.

### Which APIs are available?

Stripe, OpenAI, Twilio, SendGrid, Amazon S3 and GitHub. More are added over time.

### Do I need an account or an API key?

Not the provider’s: no Stripe, OpenAI or other account or key. Running a mock by its id, as the command on its card does, needs you signed in to the Postman CLI (`postman login`, once, with a free Postman account). A mock in your repository runs with no sign-in at all, and the hosted URLs need nothing.

### Can I test what happens when the API fails?

Yes. Each mock has scenarios — declines, rate limits, outages, merge conflicts — chosen per request with the x-mock-scenario header, so one test can cover a success and the failure after it. Each mock’s docs list its scenarios.

### Do parallel test runs see each other’s data?

Not when each sends its own x-mock-session id: each id gets its own data. A mock run with the CLI is yours alone; a hosted one keeps each caller’s data apart by that header, so it requires it.

### Is it safe to send real credentials or data?

There is no need to, and you should not: the mocks never call the real API, and anyone can call a hosted one. Use placeholder keys and sample data.

### Can I get a mock of my own API instead?

Yes. Generate one from an OpenAPI spec, a CSV or JSON file, or a single editable response with the other mock tools in the Mock API Tools group.


## Privacy

This page runs in your browser and only lists mocks, so nothing is uploaded by the page itself. The hosted mock servers are public endpoints, so do not send real keys, tokens or personal data to them.

## Other tools for this job

[Mock API Tools](https://www.postman.com/tools/mock-apis) groups every Postman tool for this job. Also see: [Mock from OpenAPI spec](https://www.postman.com/tools/mock-from-spec), [Editable mock API](https://www.postman.com/tools/editable-mock), [Instant mock API](https://www.postman.com/tools/instant-mock-api), and [Mock from CSV/JSON](https://www.postman.com/tools/mock-from-csv-json).

## Links

- [Use the tool](https://www.postman.com/tools/popular-mocks) — the interactive version of this page.
- [Postman Tools](https://www.postman.com/tools) — every free tool in this set.
- [Mock Servers docs](https://learning.postman.com/docs/design-apis/mock-servers/overview/) — Postman documentation.
