Hosted mock APIs

Mock the API before the backend exists.

Define endpoints and the exact responses you want — 200, 404, 500, custom bodies, delays, whole sequences — and get a live URL your mobile or web app can call today. Build and test the frontend against every response the real backend can't hand you on demand.

No account needed. Instant projects last 7 days; sign in to keep them.

$ curl https://shop.apipreflight.io/users/42
HTTP/1.1 200 OK
{
  "id": "42",
  "name": "Ada Lovelace",
  "plan": "pro"
}

$ curl -H "X-Mock-Scenario: outage" \
    https://shop.apipreflight.io/users/42
HTTP/1.1 503 Service Unavailable
{ "error": "Try again shortly" }

Everything the frontend needs from an API that isn't there yet

A live URL in seconds

Every project answers at apipreflight.io/m/{id}/… the moment it exists — no account needed. Pro adds yourteam.apipreflight.io and your own domain, with HTTPS handled for you.

Break it on purposePro

Flip a whole project into a 500, a timeout or an empty list with one scenario switch, or give an endpoint a different answer on each call with a sequence. Test the screens the real backend rarely shows you.

Streamed AI repliesNew

Mock a chat endpoint that streams token by token — in OpenAI or Anthropic format, with tool calls — then cut it off mid-sentence or let it stall, and see what your UI does.

Let your AI agent drive itPro

Connect over MCP and Claude, Cursor or VS Code can create endpoints, flip scenarios and read the request log while it writes your code.

Realistic data, real statePro

Generated names, emails and prices that stay the same for the same request, and stateful endpoints — a POST is there in the next GET.

Fits your pipelinePro

Import or export OpenAPI, proxy what you haven't mocked to the real API, and let CI create a throwaway mock for each run through the management API.

How it works

  1. Define an endpoint

    A method, a path and the response you want — status, headers, body, delay.

  2. Call it from your app

    Paste the URL into your web or mobile app. It answers like the real API will.

  3. Make it misbehave

    Switch to an error, a slow reply or a broken stream, and watch how the app copes.

Plans

  • Free, no account — one endpoint, an instant public URL, gone after 7 days.
  • Free account — projects saved for good: up to 3 projects, 10 endpoints each, and a log of recent requests.
  • Pro, US$9/month — scenarios and response sequences, generated data, stateful endpoints so a POST is there in the next GET, an MCP server so Claude, Cursor or VS Code can drive a project while it writes your code, a management API so your CI can make its own mock for each run, proxy passthrough to your real API, OpenAPI import and export, and your own subdomain or domain.
  • Teams, US$25/month — shared projects for your whole crew. Flat, not per seat: add anyone, no extra charge.

Full detail and a side-by-side comparison on pricing.

Your frontend doesn't have to wait for the backend.

Create an instant project →