API replay for agents & apps

One contract.
Many sandboxes.

Turn an OpenAPI contract and recorded or authored traffic into mock APIs your apps and agents can call over HTTP and MCP.

Replay preview

Interactive example
OpenAPI contractcustomers.v1.json
200 OK

GET /v1/customers/cus_104

QA dataset over HTTP

{
  "id": "cus_104",
  "name": "Morgan Lee",
  "status": "active"
}
Import OpenAPI 3.0 / 3.1 HAR & captures Sandbox & data maps
Serve HTTP replay MCP tools

How it works

From contract to callable.

Give each customer, test case, or agent its own dataset while keeping the same API paths and schema.

  1. Define the API

    Import an OpenAPI document or start from a sandbox map. Every sandbox for that API uses the shared contract.

  2. Choose a dataset

    Fill a sandbox with HAR files, published recorder traffic, or authored data maps. Create more sandboxes for different scenarios.

  3. Play and connect

    Press Play and point your client to the replay URL or your agent to the MCP URL. Pause the sandbox to stop serving both.

Capabilities

Replay that fits your stack.

Cloak sensitive fields in copied traffic, expose APIs to agents, and replay the way your clients already communicate.

Cloak sensitive data

Preview your rules, then replace sensitive values consistently across a dataset while preserving response shape. Cloak recorder traffic as you copy it into the sandbox.

Example inputmorgan@example.test Cloaked copyuser82@example.test

Give agents their own tools

Each sandbox turns OpenAPI operations into MCP tools. Agents can also create, fill, and play sandboxes through management MCP.

/sandbox/<id>/mcpOne tool per operation

Match by protocol

Replay REST, GraphQL, SOAP, and JSON-RPC fixtures. Serve SSE streams, NDJSON, and file downloads from documented endpoints.

Run local or hosted

Run locally with Node.js and MongoDB, or use hosted mode with Keyrox sign-in, per-account databases, and scoped access tokens.

Start with a built-in fixture pack

Replay the examples as shipped or duplicate a sandbox to edit its data.

  • OpenAI Compliance
  • Claude Compliance
  • Microsoft Entra ID
  • Keyrox

FAQ

How replay behaves

What happens when I replay a POST?

It returns the matching fixture. A later GET still returns its own saved fixture, even if the POST would have changed that record in production.

How does api-box work with the recorder?

api-box has read-only access to published recorder data. Live mode reads from the recorder during replay. Copy mode creates a private sandbox dataset you can cloak or transform.

Can two sandboxes serve different responses for the same path?

Yes. Sandboxes for one API share its OpenAPI contract. Each has its own dataset, replay base URL, MCP URL, and Play/Pause control.

Can I change a dataset after import?

Yes. You can merge imports into an owned sandbox or run a transformer to create an undoable revision. Duplicate a built-in fixture pack to make an editable copy.

Put your API on replay.

Bring your own traffic or start with a built-in fixture pack.

Open api-box