User manual

User manual

Build a useful local API, then add the behavior your client needs. Each chapter explains a feature, how to use it, and the boundaries to keep in mind.

New to Counterfact? Start with Generate an API from OpenAPI, then follow the first ten minutes. For exact signatures and options, use the API reference.

Choose guides by task in Find your workflow. Additional resources: FAQ, comparison, TypeScript native mode, and telemetry and privacy.

Start a working API

Define request and response behavior

Model state and workflows

Explore a running simulation

Work with evolving APIs

Integrate with development tools

Complete workflows