Skip to main content
Every request made to a mock API is recorded in its request log (also called the request journal), along with the response that was served and whether a stub matched it. You can view the request log in the WireMock Cloud web UI, or query it through the WireMock Cloud API.

Viewing requests

Open your mock API and go to the Request Log page, or press Shift + r. The log lists the requests the mock API received, with each one’s time, method, URL, response status, the stub that matched it and any validation result. Use the search box under Request filters to narrow the list, and Refresh to load new requests. The request log in the WireMock Cloud UI, with request filters and the Reset request log button Select a request to see its details and the response that was served. Some features add their own events to a logged request: For GraphQL mock APIs, you can also turn a logged request into a new stub with the Convert to stub button.

Finding unmatched requests and near misses

When no stub matches a request, WireMock Cloud returns a 404 response (unless you’ve set up a default response). The response body compares the request against the closest stub - the near miss - and marks the parts that didn’t match:
In the request log, an unmatched request has no matched stub. To list only unmatched requests through the API, call Find unmatched requests:
Each mock API’s admin API also supports WireMock’s near-miss endpoints. GET /__admin/requests/unmatched/near-misses returns each unmatched request with the stubs that came closest to matching it:
See Request matching for how each part of a request is matched.

Verifying requests via the API

To check from a test that your app made the requests you expected, use the request log endpoints. They take a request pattern in the same format as a stub’s request section. Count requests by criteria returns how many logged requests match:
Find requests by criteria takes the same pattern and returns the matching requests in full. Get all requests in journal returns every logged request. For an example of verifying requests from Java tests, see Automated testing with Java.

Resetting the request log

To clear a mock API’s request log in the web UI, click Reset request log on the Request Log page. To clear it from a test or script, for example between test runs, call Empty the request journal:
You can also remove only the requests that match a pattern with Remove requests by criteria. AI coding agents can do the same with the reset_request_journal MCP tool.