inspector.restDocs

How it works

The model behind inspector.rest — organizations, projects, environments, ingest keys, one record per request with its attempts, outcomes and path templates.

The pieces

PieceWhat it is
OrganizationYour account space with members and a plan. It has an address (<org-slug>) that cannot be changed.
ProjectOne service or app.
EnvironmentA separate stream of requests inside a project, such as production or staging. Each environment has its own ingest keys and its own retention.
Ingest keyA secret (irk_<org-slug>_<secret>) that lets an SDK write into one environment.
SDKA library in your service that records outgoing HTTP calls and sends them to https://<org-slug>.api.inspector.rest.
AppThe web app at https://<org-slug>.inspector.rest where you inspect requests.
MCP serverhttps://mcp.inspector.rest/mcp, a read-only server for AI agents.
Consoleconsole.inspector.rest, where you manage organizations, environments, keys, members, MCP access and your plan.

One record per request

The SDK merges everything that belongs to one outgoing call into a single record: the request, the response, the body, every retry, errors and the final outcome. The record is sent when the call is finished, together with all of its attempts. A call that is still running after 2 seconds is sent as an “in progress” record, which the finished record replaces.

Each attempt has its own request headers and body, response status, headers and body, timing and error. The app shows attempts as a waterfall, so you see that a call that finally returned 200 needed three tries.

Outcomes and statuses

A recorded request has one of these outcomes:

OutcomeMeaning
okThe request finished without error.
errorThe request failed: an HTTP error status, a parse error or a domain error that the client reported (this includes calls that returned HTTP 200 but were treated as failures).
networkNo response was received (connection refused, timeout, DNS failure and similar).
pendingThe request is still running.
abandonedThe request was still pending after 10 minutes without an update. The state is derived when you query; the record does not change.

The status, outcome and error of a request come from its last attempt.

Path templates

When a request arrives, its path is also stored as a template. Segments that look like ids (numbers, UUIDs, long hex strings, tokens and prefixed ids such as cus_8fK2xQ9a) become :id. For example /v1/customers/cus_8fK2xQ9aLm/charges becomes /v1/customers/:id/charges. Use the template to group and filter all customers’ calls to one endpoint, in the app and with the path_template filter in MCP.

Time

All times are UTC. Requests are sorted by when they started. Retention and paging use the time the server received a record, and the SDK corrects clock differences between your server and inspector.rest.

Where data lives

The data of an organization is stored on one server. Text bodies are stored compressed. Binary bodies, if you turn on binary capture, are stored in object storage. Both count toward your plan’s storage. Retention, “Clear requests” and deleting an environment really delete the request data.