Relmock

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 writesPOST creates, PUT replaces, PATCH merges, DELETE removes. Every change is stored in a database.
Real relationsLink orders to customers or posts to users. A key that points nowhere answers 422.
Delete rulesPer relation: block the delete (409), cascade it, or clear the link, like ON DELETE in SQL.
Write validationRequired 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 seedPut every table back to the data it was generated or imported with, in one click.
Data kept while you use itFree 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 chatDescribe your app in plain words and refine it over a conversation. The AI drafts the tables, fields and relations; you apply them.
ER diagramDraw tables and relations on a canvas, or edit them in a table editor.
200+ table templatesUsers, orders, invoices, tickets and more, in 20 categories, ready to add.
41 data types, 17 localesNames, emails, addresses, prices, dates, UUIDs, colors and more, in the language and country you pick.
Records that hang togetherName, email and username describe the same person; city, zip and address the same place; updated_at comes after created_at.
Generator settingsWeighted value lists, patterns like ORD-#####, null rates, date ranges, formulas such as {{ record.quantity * record.unit_price }}.
AI-written valuesProduct names, descriptions and reviews that fit their category, written once and reused.
Repeatable dataSet a seed and the same tables give the same records every time, for stable tests.
Linked dataChildren 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 routesGET POST /{table} and GET PUT PATCH DELETE /{table}/{id} for every table.
QueriesFilters ?status=active, _ne _gt _gte _lt _lte _like, sorting _sort _order, paging _page _limit.
Custom endpointsAny 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 keysProtect 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 modesFlaky (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 changesAn order moves from pending to paid after 2 minutes and to shipped after an hour, on its own.
Mock clockMove 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.

ImportOpenAPI, Prisma, GraphQL, pg_dump, mysqldump, JSON and CSV, records included, with a preview before anything changes.
ExportOpenAPI, 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 docsA 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 logEvery 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 server16 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 designTokens 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.

Create a free account