Mocklet
**HAR-based API mocking service** — upload a HAR file, get a mock server instantly. ## Features - 🚀 **Instant mocks** — Upload HAR, get `{mock_id}.mocklet.io` endpoint - 🔄 **Sequence support** — Multiple responses cycle through in order - ⏱️ **TTL** — Mocks auto-expire after configured duration - 📊 **Statistics** — Track hits, misses, latency per endpoint - 🎯 **Dynamic Matching** — Granular…
Mocklet endpoints
| Method | Endpoint | Description |
|---|---|---|
| Management | ||
| POST |
Create Mock (JSON) /api/v1/mocks |
Creates a new mock from a HAR document. The HAR can be sent as raw JSON or wrapped with matching rules for advanced filtering. The mock is immediately available at the returned… |
| POST |
Validate HAR (JSON) /api/v1/har/validate |
Validates an uploaded HAR JSON document and returns parsing diagnostics. This endpoint does not create a mock and does not persist data. Use it before mock creation when checking… |
| POST |
Create Mock (FILE) /api/v1/mocks/file |
Creates a new mock using a multipart HAR file upload. This endpoint is useful when large payloads are easier to send as files, and it supports optional per-entry matching rules… |
| POST |
Validate HAR (FILE) /api/v1/har/validate-file |
Validates a HAR file uploaded as multipart form-data. This endpoint is functionally equivalent to raw JSON validation but is convenient for browser and CLI workflows that upload… |
| POST |
restartMock /api/v1/mocks/{mock_id}/restart |
Resets runtime sequence state for the specified mock. Use this endpoint when deterministic replay is needed from the first recorded response variant after test setup or… |
| GET |
listMocks /api/v1/mocks |
Returns active and expired mocks owned by the authenticated user. Results include per-user aggregate counters for mock and request usage. Use `limit` to cap returned items for… |
| DELETE |
deleteMock /api/v1/mocks/{mock_id} |
Soft-deletes a mock owned by the authenticated user. Deleted mocks stop serving runtime traffic and no longer appear in active management listings. Deleting a missing mock… |
| Stats | ||
| GET |
getMockStats /api/v1/mocks/{mock_id}/stats |
Returns aggregate counters, per-endpoint metrics, and recent request history for a specific mock. This endpoint helps monitor match quality and diagnose misses by exposing… |
Mocklet pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC Recommended | Free | 100 / second |
|