← All documentation

Mock API · Customer documentation

Create test URLs returning a chosen HTTP status and response body.

What you prepare

Decide on an example API response, such as JSON.

Steps in the workspace

  1. 01Set a path and response.
  2. 02Test the generated URL in a browser or curl.
  3. 03Use it as the API URL in your development app.

Example request / integration

Use fixed JSON at GET /products to build the UI before the products API exists.

# After creating a GET /products mock, copy the issued endpoint URL.
curl -i "$MOCK_ENDPOINT"
# Change status to 500 in the workspace to test an error state.

Examples use placeholders: replace $BASE_URL, $SESSION_TOKEN and issued URLs with real values. Never publish session tokens or API keys in a webpage or repository.

Management API entry point

POST /api/picosvc/mock/endpoints

HTTP method, path, status, Content-Type, and response body.

A public URL responding with the configured values.

What it does not do

It does not automatically emulate a database or complex stateful workflows.

Feature comparison and sources

Response customization:Fixed responses with editable method, status, body, and pause.

Mockoon Cloud:Documents HTTP routes with multiple responses and rules.

Feature comparison and sources · Mockoon Cloud ↗
Overview, workspace, and dashboard

The product overview is public. The workspace handles creation, editing and history. The all-service dashboard shows usage and links for all 16 tools.