OpenAPI spec → live mock endpoints in seconds

Mock any API
without depending on it

Upload an OpenAPI spec. Get live mock endpoints in seconds. Whether you're running a load test, building a frontend, or isolating a CI pipeline — stop depending on APIs you don't control.

Start for free→See how it works
# 1. Upload any OpenAPI spec
$ curl -X POST https://api.mockra.io/workspaces/acme/schemas \
--data-urlencode 'url=https://your-api-spec.yaml'

# 2. Mock endpoints are live instantly
$ curl https://mock.mockra.io/acme/v1/orders

{ "id": "ord_mock", "status": "pending" } ← ~3ms
scroll
Why Mockra

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.

🔁Moat feature

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.

🗂Schema-first

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.

⚡Edge-native

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.

🧪Configurable

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.

🔐DevOps

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.

📡Reliability

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.

🔀Pro / Enterprise

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.

Free — no account required

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.

$ curl error.mockra.io
HTTP 429
{
"error": "Rate limit exceeded",
"category": "rate_limiting"
}
How it works

Schema in. Mock endpoints out.

From OpenAPI spec to live mock endpoints — in under 30 seconds.

STEP 01

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.

API
POST /workspaces/acme/schemas
Content-Type: application/json

{
  "url": "https://your-api-spec.yaml"
}
STEP 02

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.

Mock URLs
# Every path in your spec becomes a mock endpoint
GET  https://mock.mockra.io/acme/v1/orders
POST https://mock.mockra.io/acme/v1/orders
GET  https://mock.mockra.io/acme/v1/orders/:id

# Use from any client — browser, test runner, load tool
STEP 03

Configure response behavior

Edit response bodies, status codes, and latency per endpoint. Enable stateful sequences for endpoints that need to simulate real state transitions.

Config
PUT /mock-configs/config-id
{
  "status_code": 200,
  "body": "{ \"id\": \"ch_mock\", \"amount\": 1000 }",
  "latency_ms": 45,
  "headers": { "Content-Type": "application/json" }
}
STEP 04

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.

k6
import http from 'k6/http';

export default function () {
  http.get('https://mock.mockra.io/my-org/v1/customers');
  http.post('https://mock.mockra.io/my-org/v1/charges', payload);
}

// 10,000 VUs? No problem. Zero rate limits.
< 30s
From spec upload to live endpoints
∞
Concurrent requests, no scaling needed
0
Rate limits on your mock endpoints
100%
OpenAPI 3.x + Swagger 2.x coverage
Use cases

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.

Frontend development

Ship features before the backend is ready

The problem

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.

With Mockra

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.

ReactVueAngularNext.jsAny frontend
Learn more →
Load testing

Run your full load test without hitting third-party rate limits

The problem

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.

With Mockra

Upload the public OpenAPI spec. Point your k6 script at Mockra. Absorb every VU without a single 429.

k6LocustGatlingArtillery
Learn more →
CI/CD pipelines

Isolated mock environments for every pull request

The problem

Your test suite hits a real third-party API. Tests interfere with each other. The sandbox is flaky. Merge queues cause chaos.

With Mockra

Create ephemeral mock namespaces per PR with the Mockra API. Tear them down on merge. Zero shared state. Fully isolated per branch.

GitHub ActionsGitLab CICircleCI
Learn more →
Stateful flows

Simulate an OAuth flow across sequential mock requests

The problem

Static mocks always return the same response. Real OAuth issues tokens. Real payment APIs track transaction state across calls.

With Mockra

Configure state sequences with repeat counts and sticky terminal states. Mockra tracks state atomically per namespace — consistent across every concurrent request.

OAuth flowsPayment stateInventory depletion
Learn more →
Pricing

Start free. Scale as you grow.

No credit card required on the free tier. Upgrade when your team outgrows the current plan.

Free
$0forever

For individuals evaluating Mockra or running small experiments.

Start for free
Included
  • ✓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
Starter
$20/ month

For small teams building against APIs they don't control.

Get started
Included
  • ✓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
Most popular
Pro
$75/ month

For QA teams and performance engineers who run regular load tests.

Start Pro trial
Included
  • ✓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
Enterprise
Custom

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
Contact us

Stop depending on APIs
you don't control

Upload an OpenAPI spec. Get live mock endpoints. Ship faster — whether you're building a feature, running a load test, or wiring up a CI pipeline.

Get started for free→

No credit card required on the free tier