Creating a live mock server that answers for 24 hours.
Keep this mock.
Keep it past 24 hours. Pick where.
In the web appSpin up a real mock server with as many resources and rules as you need, and share it with your team.
In your repoYour coding agent builds this mock with realistic data and runs it on your machine.
Set up a Postman mock API with realistic fake data in this repo.
Ask me for which resource I want (users, products, orders …); use users if I don’t say first.
1. Install the Postman plugin (`npx -y @postman/postman-plugin install --yes --agent claude-code`, or `codex` or `cursor`; skip it for other agents) and the Postman CLI (`npm install -g postman-cli`) if missing. If `postman update --check` finds a newer version, ask me to run `postman update` and wait. Then run `POSTMAN_REFERRER=tools/instant-mock-api postman --version`.
2. Write a small OpenAPI spec for the resource (list and get by id) with realistic examples, run `postman mock generate <spec-file>`, then start `postman mock run postman/mocks/<name>` in the background.
3. Call the list endpoint and tell me the mock URL. Then offer to host it: `postman mock push <path> --json` (after `postman init --yes` if no workspace is linked), then `postman mock deploy <mock-id> -y` (private by default, and both need `postman login`).
Check flags with `postman <command> -h`. Ask me before changing anything in my Postman account.
Works in any coding agent that can run terminal commands.
No account needed to start. The mock runs on your machine.