Documentation

Everything you need to build with Mockra.

Getting Started

Quick Start

Upload an OpenAPI spec and call your first mock endpoint in under 5 minutes.

Core Concepts

Understand the building blocks of Mockra: workspaces, namespaces, schemas, mock configs, and tiers.

Guides

Uploading a Schema

How to upload an OpenAPI spec to Mockra — file upload, URL fetch, or raw paste.

Configuring Mock Responses

Control status codes, response bodies, headers, and latency for each mock endpoint.

Stateful Mocks

Configure endpoints that return different responses on successive calls — perfect for multi-step workflows.

Variable Interpolation

Mirror and transform incoming request data in your mock responses using template syntax.

API Keys & CI/CD

Authenticate programmatically with API keys and use ephemeral namespaces for isolated test runs.

Features

Schema Drift Detection

Monitor upstream OpenAPI specs for changes and get alerted when your mocks diverge from the real API.

API Reference

API Reference

Complete reference for the Mockra REST API — authentication, workspaces, schemas, mock configs, and more.