API Mock Sandbox

API Mock Sandbox

Local simulation only · no network request or server is created. Avoid entering real credentials into scenarios you plan to share.

1. Define a response scenario

2. Simulate a request

Load or apply a scenario to begin.

Comments & questions

API Mock Sandbox

Describe routes and their ordered responses in a local JSON scenario. Enter a request and see which route matches, which response step runs and how its state changes. This is a browser-only simulator: it neither starts an HTTP server nor sends the request to a remote endpoint.

Key features

  • Match HTTP method, literal or named path segments, exact query values and required headers
  • Replay different statuses, headers, bodies and bounded delays in a deterministic per-route sequence
  • Hold the last response after the final step; reset all route cursors to reproduce the same request order
  • See captured path parameters, the selected route and response step in a local history table
  • Export the validated scenario and complete in-memory history as separate JSON files

How to use

  1. Load the example or paste a local-api-mock-v1 JSON scenario and apply it.
  2. Review route order, matching conditions and response steps in the route table.
  3. Choose a method and local path, then enter optional request headers and body.
  4. Run the same or different request repeatedly to advance each matched route's response sequence.
  5. Reset the route counters to replay or download the scenario and local history.

Use cases

  • Verify how a client handles a 200, then a delayed 503, then a recovery response
  • Compare a header-gated route with a fallback route using the same URL pattern
  • Share a reproducible response scenario with a teammate without exposing a live service

Frequently asked questions

Does this send a real HTTP request?

No. The browser evaluates a local scenario and shows the simulated response. It does not listen on a port, intercept other tabs or contact the URL you enter.

How are multiple matching routes chosen?

Routes are considered in the order shown in the JSON. The first route whose method, path segments, query conditions and headers all match is selected.

What happens after the final response step?

The last step repeats for later matching requests. Reset returns all route counters to the first step and clears the local history.

Can I model latency and cancellation?

Each step can delay for 0–5,000 milliseconds. Cancelling a delayed response leaves its route counter unchanged so the next run sees the same step.

What are the limits?

A scenario may contain up to 24 routes and 12 response steps per route. Scenario JSON is limited to 128 KiB; each response or request body is limited to 32 KiB. Only the latest 100 history entries stay in memory.

Are request bodies used for matching?

No. The body is preserved in the local request history, but this version matches method, path, query and headers only. A nonmatching request returns a local 404 simulation.

Privacy

Mock routes and response sequences run in your browser only. No actual HTTP request or server is created. Downloaded scenarios and history may include paths, headers and response bodies you entered; review before sharing.

Related Tools

Mock Data GeneratorHTTP Status Code LookupJSON FormatterWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchGraphQL Schema LabAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchPipe Network LabRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabSensor Calibration FitPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorOpenAPI Contract InspectorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorCoordinate Reference LabSurvey Traverse LabRaster Classification LabChoropleth Design LabMap Print ComposerRaster Reprojection LabElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorTorrent Metainfo InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerJSON Schema ValidatorBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFile Manifest VerifierFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchScientific Data ProfilerTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript Minifier.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorIndent ConverterNumber Base ConverterUnicode Escape ConverterUnicode InspectorJSON Structure DiffMarkdown Table GeneratorBase64 EncoderURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorHash GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →