Quick Start

Get your first mock endpoint running in under 2 minutes.

1. Create a Project

Sign up and create a new project. Each project gets a unique API key that you'll use to authenticate requests.

2. Create an Endpoint

Add an endpoint with a method, path, and response body:

  • Method: GET
  • Path: /users
  • Status: 200

Response body:

{
  "users": [
    { "id": 1, "name": "Alice" },
    { "id": 2, "name": "Bob" }
  ]
}

3. Make a Request

Copy your API key from the project settings and make a request:

curl:

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

TypeScript:

const response = await fetch("https://api.mockspec.dev/mock/users", {
  headers: { "X-API-Key": "mk_your_api_key_here" }
});

const data = await response.json();
console.log(data.users);

Need help? Contact support