Relmock

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 Code

Writes are saved, reads see them

example
POST /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
Your own project works the same way, at your own URL.
Frontend developersBuild the UI while the API is still a ticket.
Mobile appsA real URL for demos, test builds and app reviews.
QA and testingError states, slow networks and outages on demand.
PrototypesHackathons and client demos with believable data.

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.

step 1Describe it, draw it or import itType what your app does and AI drafts the tables, draw them yourself on an ER diagram, or bring an OpenAPI, Prisma, GraphQL or SQL file.
A blog with users, posts and comments
ER diagramOpenAPIPrismaGraphQLpg_dumpmysqldumpCSV
step 2Get linked tables with dataRealistic rows that follow your field rules, with relations already joined up.
idtitleuserId
1Launch notes→ 3
2Checkout redesign→ 1
3Weekly sync→ 3
step 3Call your URLUse fetch, axios, Postman or your tests. CORS is open, so it works from any page.
const res = await fetch(
  "…/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.

  1. Create an access token in Relmock: read only, or read and write.
  2. Paste one setup line into Claude Code, Cursor or VS Code.
  3. Ask "List my Relmock projects" to check it works.
only your projectsno delete toolstokens expirerevoke any time

Uses MCP, the open standard for AI tools. Setup guide and all 16 tools →

Your editor's AI assistantrelmock · 16 tools
Look at my components and create a Relmock backend for this shop, with 20 users.
create_projectname: "shop"created
create_tablesusers, products, orders (orders.userId → users)3 tables
generate_datausers: 20, products: 50, orders: 120190 records
Your API is ready at https://app.relmock.com/mock/shop-8f2k. I pointed src/api.ts at it, so the product list now shows real data.
An example conversation. Your assistant does the thinking, so Relmock uses none of your AI credits.

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 methodPUT replaces a record, PATCH merges fields, DELETE removes 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.
/mock/<project>recorded session
POST/posts201
→ {"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"}
PATCH/posts/11200
→ {"published": true}
{"id": 11, "title": "Shipping the checkout page", "published": true, …}
POST/comments422
→ {"postId": 9999, "body": "Nice!"}
{"message": "postId=9999 does not match any record in 'posts'.", …}
GET/posts?published=true&userId=2200
[{"id": 11, "title": "Shipping the checkout page", "published": true, "userId": 2, …}]
DELETE/posts/11204
GET/posts/11404
{"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.

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.

json-server on your laptopTypical hosted mockRelmock
A hosted URL your team and phone can reachnoyesyes
POST, PUT and DELETE are savedto a local fileoftenin a database
Foreign keys checked (bad key answers 422)norarelyyes
Delete rules: block, cascade, clear linknorarelyyes
Writes validated against your fieldsnosomeyes
Data kept between sessionsyes, on your diskvaries, often hours or dayswhile you use it
Import from SQL dumps and Prismanorarelyyes
Export to SQL, Prisma, TypeScriptnorarelyyes
Mock login with JWTs and per-user datanorarelyyes
Errors, delays and a mock clocknoerrors and delaysyes
Works with AI coding assistants (MCP)nosomeyes, 16 tools
GraphQLnosomeno, 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 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, with templated responses for what tables don't cover
AccessOptional X-API-Key, and a mock login so your app's sign-in flow runs against mock users
ImportOpenAPI, Prisma, GraphQL, pg_dump, mysqldump, JSON and CSV, with a preview first
ExportOpenAPI, SQL (Postgres, MySQL, SQLite), Prisma, TypeScript, Postman, JSON and CSV
DocsA shareable API reference with code snippets and a Try it console, optionally behind a passcode
Request logEvery call with headers, bodies and timing, filterable by status and method

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.