Skip to content

Your data in MockHub

Anyone on the internet can call a project’s address. What MockHub keeps about those calls is up to the project’s settings, and everything it keeps is visible to every member of the workspace.

For each request a project answers, the request log can hold:

  • the method, the full URL including its query string, the request headers and the body;
  • the response status, headers and body;
  • the timing, which mock answered, and whether the call used HTTPS or HTTP.

MockHub also resolves the caller’s IP address to a country and network operator. Only MockHub’s operators can see that information, for abuse prevention and security; no workspace role can.

Bodies are stored up to your plan’s size limit and cut off after it.

A project’s settings have a Responses and logging section. Changing it needs the Admin role.

Setting What it does
Store request logs Off: no new request, inbox post or capture is stored in the request log. Requests still count towards usage and limits, insights still count them, and webhook triggers still fire. Logs already stored are kept.
Log request headers and body Off: the request’s headers, body and query string are not stored. The method, the path, the time, the caller’s IP address and whether the call used HTTPS still are, with the response. Turn it off for traffic that carries personal data.
Request headers to redact These headers are stored as [REDACTED], except that Authorization keeps its scheme (Bearer [REDACTED]) and Cookie its cookie names. Both are redacted by default.
Log response headers and body, Response headers to redact The same, for the response. A new project redacts Set-Cookie.
Log requests no mock answered On for a new project: unmatched requests are logged too, which is how you find what your mocks are missing. Off: a request no mock answered is not stored, unless it was forwarded to an upstream or MockHub answered it with an error.

A webhook fired by a mock is sent the request as it arrived, whatever these settings say. While a project has such a webhook switched on, MockHub holds each request a mock answers, encrypted, until the delivery is made. The delivery record shows the body with the request’s values as the request log keeps them; the body as it was sent is kept with the record, not shown, so that a retry or a replay sends the same thing. A webhook’s own static header values are never shown once saved, on any screen or in the configuration document.

Traffic recorded from a real API and callbacks posted to the inbox are someone’s real data. Add the fields that must never be stored to Body keys to redact in captures; see Gateway modes.

  • Request logs are kept for the number of days your plan provides, and removed sooner, oldest first, when the workspace reaches its log row or log storage limit.
  • Insights keep traffic counts, without request details, for the period your plan provides. Hour-by-hour detail covers the last 14 days.
  • Webhook delivery records are kept for 30 days.
  • A deleted project is kept for 14 days, hidden from the workspace, so that support can recover it if you ask; then it is deleted permanently and its logs are removed within 30 days. A CI environment’s project is deleted permanently at once.
  • A deleted workspace is kept for 14 days the same way, hidden from its members; then it is deleted permanently with everything still in it, logs included.
  • A demo and everything in it is deleted a day after the demo ends, unless you keep it by creating an account.

The limits page lists each plan’s retention.

When you ask the assistant about requests the project received, it sends a third-party AI model what the request logs hold about them:

  • for Explain and fix with AI, the one request and what Why didn’t this match? found about it;
  • for Fix with AI on a request whose response did not render, the one request and the reason its log kept;
  • for Mock with AI, up to three of each endpoint’s newest requests no mock answered, from the last 30 days;
  • for Parameterise selected with AI and Update with AI, up to three of each endpoint’s newest captures from the last 30 days, with the status, content type and body the upstream answered with.

Each request goes as the log stored it, so headers the project redacts stay redacted and nothing logging left out is sent. The values of common secrets and the project’s Body keys to redact in captures are replaced first, and headers and bodies are cut short. MockHub keeps the proposal the assistant makes, not what was sent.

Try to fix on a proposal sends the changes that failed their checks back to the model, with what MockHub found wrong with each, the mocks they change and the logged requests they were made from, replaced and cut short in the same way.

When the assistant may write to the data store, it is sent each collection’s name, how many records it holds and which mocks use it, and the first 20 records, up to 8 KB, of at most three collections the request is about, with common secrets and the project’s Body keys to redact in captures replaced. See What is sent to the model.

You can delete your account from your profile settings, after typing your email address to confirm. It is immediate and cannot be undone.

  • Every workspace you are the only Owner of, and every deleted one you were the only Owner of that support could still recover, is deleted with everything in it: projects, mocks, request logs, custom domains and tokens.
  • If you are the only Owner of a workspace that has other members, or a subscription that will renew, deletion is refused until you transfer the workspace or cancel the subscription.
  • A workspace you own with other Owners stays with them, deleted or not, and you are removed from it. If you are its billing contact, deletion is refused until another Owner is.
  • In other people’s workspaces, you are removed as a member. What you created there stays.
  • Your personal tokens are deleted. Machine tokens you created keep working, because they belong to their workspace.

Some records outlive the account for security and legal reasons:

  • the activity trail of changes you made in workspaces that still exist, for two years, under the name Deleted user and without your IP address or browser;
  • records of sign-ins and failed sign-ins, for 90 days;
  • invoices, at the payment provider. Its customer record is deleted with each workspace, unless an invoice is still unpaid;
  • whether your address started a trial or paid, stored as a one-way hash for 12 months, so that signing up again does not start a second free trial.

Report a problem with this page