free hosted mock API · no backend code
A mock REST API that works like a real backend
Describe your app or import a schema, get realistic data, and call your mock API at its own URL from any frontend. Every POST, PUT and DELETE is saved, so you can build and demo your app before the real backend exists.
Free plan · no credit card · email or Google
newWorks with Cursor, Claude Code and VS CodeWrites are saved, reads see them
examplePOST /mock/blog/posts { "title": "Launch notes", "userId": 3 } 201 Created { "id": 41, "title": "Launch notes", "userId": 3 } GET /mock/blog/posts?userId=3 200 OK [ { "id": 7, "title": "Weekly sync", "userId": 3 }, { "id": 41, "title": "Launch notes", "userId": 3 } ] POST /mock/blog/posts { "userId": 999 } 422 Unprocessable userId=999 does not match any record in users
how it works
From an idea to a working API in three steps
No server to run and nothing to install. Your API gets its own URL that works from the browser, a phone or a test runner.
| id | title | userId |
|---|---|---|
| 1 | Launch notes | → 3 |
| 2 | Checkout redesign | → 1 |
| 3 | Weekly sync | → 3 |
"…/mock/blog/posts?userId=3"
);
// → 2 posts, with filters and paging
ai assistants
Let your AI assistant build the mock
Connect Relmock to the assistant in your editor once. Then ask in plain words: it creates the tables, fills them with data and gives you a working URL, without opening the dashboard. It can also read your request log to explain an error.
- Create an access token in Relmock: read only, or read and write.
- Paste one setup line into Claude Code, Cursor or VS Code.
- Ask "List my Relmock projects" to check it works.
Uses MCP, the open standard for AI tools. Setup guide and all 16 tools →
https://app.relmock.com/mock/shop-8f2k. I pointed src/api.ts at it, so the product list now shows real data.features
Writes are stored. Reads return them.
Most mock servers answer every call with the same canned JSON. In Relmock a table is a table: what you POST is there on the next GET, from any browser or device, until you change it.
- Every write method
PUTreplaces a record,PATCHmerges fields,DELETEremoves it and applies your delete rules. - Related tablesLink posts to users or orders to customers. A key that points nowhere answers
422, and deletes can cascade. - Reset when you likeRegenerate a table, or reset the project to the data it was generated with.
→ {"title": "Shipping the checkout page", "body": "Draft", "userId": 2} {"id": 11, "title": "Shipping the checkout page", "body": "Draft", "published": false, "userId": 2, "createdAt": "2026-10-18T00:20:06"}
→ {"published": true} {"id": 11, "title": "Shipping the checkout page", "published": true, …}
→ {"postId": 9999, "body": "Nice!"} {"message": "postId=9999 does not match any record in 'posts'.", …}
[{"id": 11, "title": "Shipping the checkout page", "published": true, "userId": 2, …}]
{"error": "Not Found", "message": "Record not found."}
Responses copied from a real project; long bodies shortened with …
testing
Test the screens nobody designs for
Loading spinners, error banners and retry buttons only get tested when the API misbehaves. Relmock misbehaves on request.
?_delay=2000Slow networkAny call, any delay.?_status=500Server errorsOr a flaky mode that fails some calls.mock loginSign-in flowsYour app's login runs against mock users.mock clockTime travelMove the clock forward to test expiry.everything included
More than a mock: the parts a real backend has
All of this is on the free plan. Most hosted mocks stop at saved writes; Relmock also keeps your tables linked, checks every write and lets you test the awkward cases.
422Real relationsBad keys are refused; deletes block, cascade or clear links.
strictWrite validationRequired fields, ranges, lengths and regex, checked on every write.
AISchema chatDescribe the app; the AI drafts linked tables.
200+Table templatesUsers, orders, invoices and more, in 20 categories.
41 × 17Data types and localesRecords where name, email and city belong together.
{{ }}Custom endpointsTemplated answers that read your tables, with conditions.
JWTMock loginRegister, sign in and per-user tables for your app's auth.
503Network modesFlaky, outage and corrupted responses on one switch.
+2hMock clockOrders move from pending to shipped; jump ahead to test it.
7 in · 8 outImport and exportOpenAPI, Prisma, SQL dumps, GraphQL in; SQL, TypeScript, Postman out.
Try itPublic docsA shareable reference with snippets and a live console.
MCPAI assistants16 tools for Claude Code, Cursor and VS Code.
compare
How it differs from what you use now
json-server is great on your own laptop, and many hosted mocks now save writes too. Relmock's difference is that it behaves like a database: linked tables, checked writes and data that stays while you use it.
| Feature | json-server on your laptop | Typical hosted mock | Relmock |
|---|---|---|---|
| A hosted URL your team and phone can reach | no | yes | yes |
| POST, PUT and DELETE are saved | to a local file | often | in a database |
| Foreign keys checked (bad key answers 422) | no | rarely | yes |
| Delete rules: block, cascade, clear link | no | rarely | yes |
| Writes validated against your fields | no | some | yes |
| Data kept between sessions | yes, on your disk | varies, often hours or days | while you use it |
| Import from SQL dumps and Prisma | no | rarely | yes |
| Export to SQL, Prisma, TypeScript | no | rarely | yes |
| Mock login with JWTs and per-user data | no | rarely | yes |
| Errors, delays and a mock clock | no | errors and delays | yes |
| Works with AI coding assistants (MCP) | no | some | yes, 16 tools |
| GraphQL | no | some | no, REST only |
"Typical hosted mock" is a summary of common hosted mock services; each one differs, so check the ones you are comparing.
reference
What a project gives you
One base URL per project. Everything below works from the browser, a mobile app or a test runner.
| Table routes | GET POST /{table} and GET PUT PATCH DELETE /{table}/{id} for every table |
|---|---|
| Queries | Filters ?status=active, _ne _gt _gte _lt _lte _like, sorting _sort _order, paging _page _limit |
| Custom endpoints | Any path and method, with templated responses for what tables don't cover |
| Access | Optional X-API-Key, and a mock login so your app's sign-in flow runs against mock users |
| Import | OpenAPI, Prisma, GraphQL, pg_dump, mysqldump, JSON and CSV, with a preview first |
| Export | OpenAPI, SQL (Postgres, MySQL, SQLite), Prisma, TypeScript, Postman, JSON and CSV |
| Docs | A shareable API reference with code snippets and a Try it console, optionally behind a passcode |
| Request log | Every call with headers, bodies and timing, filterable by status and method |
pricing
Free to start. Pay when you need more.
Every account starts on the free plan, no card needed. Upgrade from the Account page when a project outgrows it.
Free
for trying things out
- 2,000 mock requests a month
- 3 projects
- 20 tables per project, 200 records each
- 5 custom endpoints per project
- 5 AI schema messages a day
Pro
or $70 a year, billed yearly (2 months free)
- 50,000 mock requests a month
- 20 projects
- 30 tables per project, 10,000 records each
- 50 custom endpoints per project
- 50 AI schema messages a day
Max
or $150 a year, billed yearly (2 months free)
- 250,000 mock requests a month
- 50 projects
- 100 tables per project, 50,000 records each
- 200 custom endpoints per project
- 150 AI schema messages a day
Prices in US dollars; tax is added at checkout where it applies, and the checkout may show your local currency. Paid plans renew automatically until you cancel, which you can do any time from the Account page; the plan then runs to the end of the period you paid for. Your first payment is refunded in full if you ask within 7 days (Refund and Cancellation Policy). Payments are handled by Dodo Payments, our merchant of record.
faq
Questions
Is it really free?
Yes. The free plan has no time limit and needs no credit card, whether you sign up with email or with Google. It has a monthly allowance of mock requests and limits on projects and records per table.
Is the data really saved?
Yes. Every create, update and delete is written to a database, so later reads return it, from any device or browser, until you change it, regenerate the table or reset to the seed.
How long is my data kept?
As long as you use the project. If a free project is not opened or called for 14 days, its records are deleted; the project, its tables and its URL stay, and Generate fills it again. You get an email a week before, and one visit or API call keeps the data.
Is it safe to let an AI assistant use it?
Yes. An assistant connects with an access token you create, and sees only your own projects. Tokens can be read only, they expire, and you can revoke one at any time; changing your password revokes all of them. There is no tool that deletes projects, tables or records. More on AI assistants.
What happens when my real backend is ready?
Change one base URL in your app. You can also export the schema as OpenAPI, SQL, Prisma or TypeScript to start the real backend from it.
Can I import an existing schema?
Yes. Relmock imports OpenAPI, Prisma, GraphQL, pg_dump and mysqldump files, JSON and CSV, and shows a preview before anything is created.
Can I call it from the browser?
Yes. Mock URLs answer CORS requests from any origin, with or without credentials, so fetch and axios work directly.
How is it different from JSONPlaceholder, json-server or mockapi.io?
JSONPlaceholder fakes writes and json-server runs on your own machine. Relmock is a hosted mock API that saves every write in a database, checks foreign keys and validates fields. mockapi.io also saves writes; Relmock adds linked tables with delete rules, imports from SQL and Prisma, mock login and a mock clock. Side-by-side pages: JSONPlaceholder, json-server, mockapi.io.
Build your frontend before the backend exists
Start on the free plan. Sign up with email or Google.