Everything in a Relmock project
All of it is on the free plan · part of the user guide
Relmock is a hosted mock REST API that works like a real backend. Writes are saved, tables are linked, and you can make the API slow, broken or signed-in on purpose. Here is everything it does.
Data that behaves like a database · Design and generate · Call it like a real API · Test the hard cases · Import and export · Share and inspect · AI assistants
Data that behaves like a database
A table is a table. What you write is there on the next read, from any browser, phone or test runner.
| Saved writes | POST creates, PUT replaces, PATCH merges, DELETE removes. Every change is stored in a database. |
|---|---|
| Real relations | Link orders to customers or posts to users. A key that points nowhere answers 422. |
| Delete rules | Per relation: block the delete (409), cascade it, or clear the link, like ON DELETE in SQL. |
| Write validation | Required fields, value lists, number ranges, text length and regex rules. Strict mode answers 422 with every problem; warn mode stores the write and says what was wrong in a header. |
| Reset to seed | Put every table back to the data it was generated or imported with, in one click. |
| Data kept while you use it | Free projects keep their records as long as they are used; after 14 days without use the records are cleared, with an email a week before. |
Design and generate
Start from a sentence, a diagram, a template or a file. Get linked tables filled with data that looks real.
| AI schema chat | Describe your app in plain words and refine it over a conversation. The AI drafts the tables, fields and relations; you apply them. |
|---|---|
| ER diagram | Draw tables and relations on a canvas, or edit them in a table editor. |
| 200+ table templates | Users, orders, invoices, tickets and more, in 20 categories, ready to add. |
| 41 data types, 17 locales | Names, emails, addresses, prices, dates, UUIDs, colors and more, in the language and country you pick. |
| Records that hang together | Name, email and username describe the same person; city, zip and address the same place; updated_at comes after created_at. |
| Generator settings | Weighted value lists, patterns like ORD-#####, null rates, date ranges, formulas such as {{ record.quantity * record.unit_price }}. |
| AI-written values | Product names, descriptions and reviews that fit their category, written once and reused. |
| Repeatable data | Set a seed and the same tables give the same records every time, for stable tests. |
| Linked data | Children per parent (0 to 3 comments per post), trees for parent_id, one-to-one links. |
Call it like a real API
One base URL per project. CORS is open, so it works from any page, app or test.
| 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. Templated responses that can read your tables, conditions that pick a response, sequential or random answers, and body validation. |
| Mock login | /auth/register, /auth/login and /auth/me with real JWTs, so your app's sign-in flow works. Tables can be private to each signed-in user. |
| API keys | Protect a project with X-API-Key, like a real backend. |
Test the hard cases
The screens nobody designs for only get tested when the API misbehaves. Relmock misbehaves on request.
| Network modes | Flaky (random delays and 1 in 5 calls failing with 500, 504 or 429), outage (every call 503) and corrupted payloads. |
|---|---|
| Per-call errors and delays | ?_status=500 or ?_delay=2000 on any call, and a fixed delay for a whole project. |
| Time-based changes | An order moves from pending to paid after 2 minutes and to shipped after an hour, on its own. |
| Mock clock | Move the project's clock forward to test expiry, trials and reminders without waiting. |
Import and export
Bring the schema you already have, and take it with you when the real backend starts.
| Import | OpenAPI, Prisma, GraphQL, pg_dump, mysqldump, JSON and CSV, records included, with a preview before anything changes. |
|---|---|
| Export | OpenAPI, SQL for Postgres, MySQL and SQLite, Prisma, TypeScript, Postman, JSON and CSV. |
Share and inspect
Hand the API to a teammate, a client or a tester, and see exactly what your app sent.
| Public API docs | A reference page for every project with snippets in cURL, JavaScript, Python and Go, and a Try it console that calls the live mock. Optionally behind a passcode. |
|---|---|
| Request log | Every call with headers, bodies, status and timing, filterable by method and status. Passwords and keys are hidden. |
AI assistants
Your coding assistant can build and inspect the mock for you.
| MCP server | 16 tools for Claude Code, Cursor, VS Code and other MCP clients: create projects and tables, generate data, import a schema, read the request log. Setup guide. |
|---|---|
| Safe by design | Tokens are read only or read and write, they expire, and there is no delete tool. |
Start
Create a free account and have a working API in a few minutes. Getting started walks you through it.