DotMock

Build your first mock

Start in your terminal.

One command installs the CLI and connects it to this browser.

01  Install02  Authenticate

Install and connect

Run this in a terminal. The modal will continue as soon as the CLI checks in.

Creating a secure setup session…

The CLI stores a team-scoped key in ~/.dotmock/config.json. Never commit that file.

Protocol-native mocking

Keep the interface.Control the behavior.

DotMock surrounds your backend with controlled dependencies. Your application keeps speaking the protocol it was built for while you decide the data, state, timing, errors, streams, and outbound events.

HTTP + OpenAPI

REST

Model payment, identity, shipping, CRM, and other HTTP dependencies with the paths, methods, schemas, state, latency, and failures your client expects.

  • OpenAPI import and contract-shaped endpoints
  • Conditional responses, persistent state, and proxy mode
  • Traffic inspection and deterministic error paths
Read the REST guide

Queries + subscriptions

GraphQL

Keep GraphQL operations native while controlling resolver data, partial errors, variables, mutations, and subscription events.

  • Schema-aware queries and mutations
  • GraphQL error envelopes and response data
  • Subscription sequences for realtime tests
Read the GraphQL guide

WSDL + XML

SOAP

Exercise enterprise integrations against their real XML shape, operation names, namespaces, and typed SOAP faults.

  • WSDL and XSD contract workflows
  • SOAP envelope and operation matching
  • Protocol-native fault responses
Read the SOAP guide

Protobuf + streaming

gRPC

Test Protobuf services with metadata, typed messages, status codes, and unary or streaming behavior without a live upstream.

  • Service and method contracts
  • Metadata and gRPC status behavior
  • Unary and streaming test paths
Read the gRPC guide

WebSocket + SSE

Realtime

Reproduce connection lifecycles and ordered message sequences, including delays, disconnects, and recovery behavior.

  • WebSocket and server-sent event flows
  • Timed sequences and connection state
  • Disconnect and retry scenarios
Read the Realtime guide

Provider-shaped fixtures

LLM APIs

Return provider-compatible chat, response, streaming, usage, tool-call, and failure payloads without spending against a model provider.

  • Deterministic fixtures and tool calls
  • Streaming, latency, and malformed output
  • Usage and provider-shaped error responses
Read the LLM APIs guide

Events + delivery

Webhooks

Trigger signed outbound events, inspect attempts, and verify retry, delay, and failure handling as part of the same scenario.

  • Signed event payloads
  • Delay, retry, and failure policies
  • Outbound-attempt inspection
Read the Webhooks guide

One controlled environment

Test the dependency as it exists—not as a generic fake.

Read the docs