Workspaces, projects and mocks
Everything in MockHub belongs to a workspace, is organised into projects, and answers requests through mocks. Knowing which level something lives on tells you who can see it, what it costs and what happens when you delete it.
Workspace
Section titled “Workspace”A workspace is what you share with other people and what carries the bill. It holds:
- its members and their roles, and the invitations waiting to be accepted;
- API tokens and machine tokens;
- custom domains;
- the subscription: the plan, its limits and the usage counted against them;
- the activity trail of changes made in it;
- its projects.
Every account has a personal workspace, created when you sign up, with you as its Owner. It cannot be deleted or transferred to anyone else. To work with other people, create another workspace and invite them.
Each workspace has at least one Owner, and as many as its plan allows; a personal workspace has exactly one. Owners are equals, and one of them is the workspace’s billing contact, who receives its invoices. See Roles, personal tokens and machine tokens.
Plan limits apply per workspace: every project in a workspace draws on the same request allowance, and members count against the same seat limit. A second workspace is billed separately.
The workspace switcher, which shows the selected workspace’s name in the page header, sets which workspace you are working in. Lists, settings and tokens always show the selected workspace only.
Project
Section titled “Project”A project is what answers requests. It has its own address, such as https://orders-api.mockhub.dev, and holds:
- its mocks, with their version history;
- scenarios and their current state;
- chaos profiles;
- outbound webhooks and their delivery records;
- alert rules;
- request logs, insights and captures of real traffic.
Its settings decide how it answers (the gateway mode, response templating) and what it records about the traffic it receives.
Deleting a project removes it from the workspace at once: its address stops answering and it no longer counts against the plan’s limits. MockHub support can recover it for 14 days; then its mocks and their history are deleted permanently, and its request logs within 30 days after that. See Delete or archive a project.
A mock is one request pattern and the responses it can send when a request matches it. The pattern can look at the method, the path, query parameters, headers and the body. A mock holds one or more named response variants, each fixed, templated with values from the request or with fake data, or delayed, and one of them is the default response. A request can ask for another of them, or the mock can answer with each in turn as a sequence. The pattern, activation, tags and scenario belong to the mock, not to a response; see Choose the response that answers.
A mock is either Active or Inactive. An inactive mock never answers, which lets you prepare or keep a mock without it affecting callers.