Getting started
Create your account, your first workspace and your first mock server step by step.
Go from zero to a working mock API in under five minutes. This guide walks through creating a server, defining endpoints, calling them from your app, simulating failures and running mocks inside your CI pipeline.
Explore
Create your account, your first workspace and your first mock server step by step.
Learn the template syntax for dynamic values, conditions and generated data.
Every command and flag for running mocks locally and in automated pipelines.
Create, scope and rotate API keys, and protect mocks with access rules.
Bring in OpenAPI, Swagger and Postman collections with best-practice tips.
Answers to the most common setup and integration questions.
From your dashboard choose New server and give it a name. Everself Lab provisions a hosted HTTPS endpoint instantly. Each server belongs to a workspace, and you can create as many servers as your plan allows — for example one per microservice or one per third-party API you depend on.
https://mock.everselflab.shop/<workspace>/<server>
Add a route, pick an HTTP method and set the response status, headers and body. Responses support templates, so values can come from the request itself or from the fake data generator. You can also add rules that return different responses depending on headers, query strings or body content.
{
"id": "{{params.id}}",
"name": "{{fake.person.fullName}}",
"email": "{{fake.internet.email}}",
"joined": "{{fake.date.past}}"
}
Point your HTTP client at the mock URL and send requests exactly as you would to the real API. Keep the base URL in an environment variable so you can switch between the mock and production without changing code. Every request appears instantly in the live log.
curl -H "x-api-key: $EVERSELF_KEY" \ https://mock.everselflab.shop/acme/shop/v1/orders
Real APIs fail. Add a delay, a timeout or an error status to any route to confirm your loading states, retries and error messages work. You can also apply a failure rate, such as 10% of requests returning 503, to test resilience under realistic conditions.
routes:
- path: /v1/payments
delay: 800ms
failureRate: 0.1
failureStatus: 503
Run a mock locally from a spec file inside your test pipeline. The CLI starts in milliseconds, needs no network access, and exits cleanly when your tests finish, making it ideal for GitHub Actions, GitLab CI and other runners.
npx everselflab mock ./openapi.yaml --port 4010 # ✔ Mock running on http://localhost:4010
Our support team answers technical questions within one business day. Contact support.