Paste an OpenAPI or Swagger spec and get every endpoint mocked at once. Free, no login.
OpenAPI spec (JSON or YAML)
This mock expires in 24 hours.
Sign up to deploy your mock as a mock server with a durable URL, add state and logic in code, and share it with your team.
Keep this mock.
Keep it past 24 hours. Pick where.
In the web appDeploy it with a durable URL, add state and logic in code, and share it with your team.
In your repoYour coding agent builds it from this spec and runs it on your machine.
Set up a Postman mock in this repo from my OpenAPI spec.
Ask me for my OpenAPI spec 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/mock-from-spec postman --version`.
2. Run `postman mock generate <spec-file>`, then start `postman mock run postman/mocks/<name>` in the background.
3. Call one 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.