Mock API Playground Free · No login

Create a mock REST API online in seconds: add routes, set the status, headers, delay and JSON body, press Save and call your mock URL from anywhere.

Mock URLPress Save to get a public URL for these routes
Routes (5/25)
Use {{params.id}} or {{query.page}} to echo the request
Test your mock
GET

Press Save & send: your routes get a public URL and this request is sent to it.

How the mock playground works

  1. Add routes. Pick a method and a path such as /users/{id}, or import them from an OpenAPI or Swagger spec.
  2. Shape each response. Set the status code, headers, a delay and the body. Paste a JSON Schema or a sample and press Generate to fill it with realistic data.
  3. Save and call it. You get a public URL on services.hitapi.dev. Call it from this page, cURL, Postman or your app. It stays live for 7 days after your last save.

Need a mock that never expires, built from your whole API spec and kept in a team project? See the HitAPI mock API server. To call real APIs instead, use the API Playground.

Mock playground FAQ

Do I need an account to create a mock API?

No. Build your routes, press Save and you get a public mock URL straight away. Sign up only if you want mocks that never expire, generated from a project spec.

How long does a playground mock last?

Seven days after your last save. Every save resets the 7 days and keeps the same URL. You can edit it from the browser you made it in.

Can I call the mock from my own app or from cURL?

Yes. The URL works from anywhere: your frontend, a mobile app, Postman, cURL or a CI job. CORS is open and no token is needed.

What can I customize?

Up to 25 routes, each with its own method, path (with {params}), status code, response headers, delay of up to 10 seconds and body. Bodies can use {{params.id}} and {{query.page}} to echo the request.

What is not allowed in the playground?

HTML responses, redirects, cookies and CORS or security headers, so mocks cannot be used for phishing. Responses can be JSON, plain text, XML or CSV.

Keep your mocks and test your real API

With a free account, mocks are generated from your spec, never expire, and sit next to AI-written tests for the real API.

Sign up free