Not another static mock tool
Other solutions are built for local dev, not for teams that depend on APIs they don't control. Mockra is different.
Stateful mock sequences
The only mock tool that tracks state across sequential calls. Simulate OAuth token flows, payment state machines, inventory depletion — consistent behavior whether it's a single developer or a full load test.
OpenAPI → live endpoints
Upload a YAML or JSON spec (or paste a URL). Mockra parses every path, generates smart example responses, and warms the cache. Your mock endpoints are ready in seconds.
Always fast, always on
Built on global edge infrastructure with a pre-warmed response cache. No warm-up, no latency spikes, no infrastructure to manage — your mocks are ready the moment your team needs them.
Latency simulation
Configure realistic response latencies per endpoint. Test how your application behaves when the payment API is slow. No code changes in your load test scripts.
CI/CD native
Create ephemeral mock namespaces per PR with API keys. GitHub Actions, GitLab CI, CircleCI — spin up and tear down mock environments as part of your pipeline.
Schema drift detection
When the third-party API updates their spec, Mockra diffs the live spec against your mock baseline and alerts you before your test suite starts failing in unexpected ways.
Request variable interpolation
Mirror live request data directly into mock responses. Reference path params, query fields, request headers, or body values using {path.id}, {query.page}, {body.email} — and Mockra substitutes the real value at serve time.
Need a quick error response endpoint?
error.mockra.io returns a random error response on every request — no setup, no API key, no account. 1,000 unique error messages across categories like auth, rate limiting, validation, and server errors. HTTP status codes are derived from the error category. Use it in tests, demos, or anywhere you need a realistic error payload instantly.
Schema in. Mock endpoints out.
From OpenAPI spec to live mock endpoints — in under 30 seconds.
Upload your OpenAPI spec
Paste a URL to your spec or upload a YAML/JSON file. Works with OpenAPI 3.x and Swagger 2.x. Full $ref resolution, allOf/oneOf/anyOf support.
Mock endpoints go live instantly
Mockra parses every path, auto-generates example response bodies, and warms the response cache. Your endpoints are live before you've closed the upload dialog.
Configure response behavior
Edit response bodies, status codes, and latency per endpoint. Enable stateful sequences for endpoints that need to simulate real state transitions.
Build, test, and ship against it
Point your frontend, test suite, load generator, or CI pipeline at Mockra endpoints. No rate limits, no shared state, no flaky sandboxes — just predictable mock responses at whatever scale you need.
For every team that depends on APIs they don't control
Frontend teams, QA engineers, platform teams, and CI pipelines — anyone blocked by an API they don't own.
Ship features before the backend is ready
The API you're building against doesn't exist yet — or it does, but it's flaky, slow, and shared with every other developer on the team. You're blocked.
Upload the agreed-upon OpenAPI spec. Mockra generates realistic mock responses for every endpoint instantly. Build against it today. Swap the base URL when the real API ships.
Run your full load test without hitting third-party rate limits
The API your app depends on throttles at 100 RPS. Your load test needs 10,000. You're testing your application, not someone else's infrastructure.
Upload the public OpenAPI spec. Point your k6 script at Mockra. Absorb every VU without a single 429.
Isolated mock environments for every pull request
Your test suite hits a real third-party API. Tests interfere with each other. The sandbox is flaky. Merge queues cause chaos.
Create ephemeral mock namespaces per PR with the Mockra API. Tear them down on merge. Zero shared state. Fully isolated per branch.
Simulate an OAuth flow across sequential mock requests
Static mocks always return the same response. Real OAuth issues tokens. Real payment APIs track transaction state across calls.
Configure state sequences with repeat counts and sticky terminal states. Mockra tracks state atomically per namespace — consistent across every concurrent request.
Start free. Scale as you grow.
No credit card required on the free tier. Upgrade when your team outgrows the current plan.
For individuals evaluating Mockra or running small experiments.
- ✓5,000 mock requests / month
- ✓5 mock endpoints
- ✓2 schemas
- ✓OpenAPI schema upload
- ✓Auto-generated mock responses
- ✓Configurable status codes
- ✓Sub-millisecond response cache
- ✕No stateful mock sequences
- ✕No latency simulation
- ✕No custom response headers
- ✕No CI/CD API keys
- ✕No variable interpolation
For small teams building against APIs they don't control.
- ✓100,000 mock requests / month
- ✓50 mock endpoints
- ✓10 schemas
- ✓Everything in Free
- ✓Stateful mock sequences
- ✕No latency simulation
- ✕No schema drift detection
- ✕No ephemeral namespaces
- ✕No CI/CD API keys
- ✕No custom response headers
- ✕No variable interpolation
For QA teams and performance engineers who run regular load tests.
- ✓1,000,000 mock requests / month
- ✓1,000 mock endpoints
- ✓1,000 schemas
- ✓Everything in Starter
- ✓Latency simulation
- ✓Custom response headers
- ✓Variable interpolation
- ✓Schema drift detection
- ✓CI/CD API keys
- ✓Ephemeral namespaces per PR
- ✓Audit logs
For large engineering orgs with high request volumes and compliance requirements.
- ✓Custom request volume
- ✓Custom endpoint & schema limits
- ✓Everything in Pro
- ✓SSO / SAML
- ✓SLA guarantees
- ✓Priority support
- ✓Custom contract