Introduction

Everything you need to mock APIs and accelerate your frontend development.

What is Mockspec?

Mockspec is a mock API server that lets you create realistic API endpoints without writing backend code. Define your endpoints, configure responses, and start building your frontend immediately.

Key Features

  • Project-based organization - Group endpoints by project with separate API keys
  • Dynamic responses - Use templates to generate realistic data on each request
  • Chaos engineering - Simulate delays and failures to test resilience
  • OpenAPI import - Generate endpoints from your specs instantly
  • Request logging - Debug and monitor all requests in real-time
  • Team collaboration - Share projects with your team

How It Works

  1. Create a project - Each project gets a unique API key
  2. Define endpoints - Set up paths, methods, and response bodies
  3. Call your mock API - Use your API key to authenticate requests
  4. Debug with logs - View all requests and responses in the dashboard

Example Request

Once you've created an endpoint, call it like any other API:

curl -X GET "https://api.mockspec.dev/mock/users" \
  -H "X-API-Key: mk_your_api_key"

Need help? Contact support