FakeAPI is a Mongo-backed, TypeScript-first listener for reserved sandboxes. Each namespace receives a one-time token, then every request sent to that namespace can carry its own fakeresponse. The server simply listens, logs the interaction, and returns the response the client asked to hear.
NamespaceFirst-come, first-served sandbox root
TokenShown once on registration, used for login and API management
ListenerNo server-side inline service creation is required
Quick Start
Bring the service up, reserve a namespace, store the one-time token, and start sending requests that contain fakeresponse. You can run locally with Node or with Docker Compose.
docker compose up --build -d
Open: https://fakeapi.vexlo.ca
Local dev: http://localhost:3000
Auth and Namespace Flow
The namespace is the client root and the token is the lightweight management credential. The token is shown only once during registration and must be kept by the client.
Use inline mode by embedding fakeresponse in the request body. This is the fastest way to stub a login, profile fetch, pricing lookup, or any fixed contract response.
Use record mode when behavior should depend on prior requests. Each rule can move a flow to the next state. Clients should keep and resend x-fakeapi-session to continue a scenario over time.
See a live list of requests received by the namespace.
Inspect request and response payloads per interaction.
Copy requests back out as cURL, fetch, or Axios snippets.
View errors when a request forgot to include fakeresponse.
AI Export Endpoints
When a real implementation is about to start, use the AI export APIs to retrieve the entire mock contract, metadata, and flow hints in a machine-friendly shape.