Mock Server
Make API requests through Mokra mock servers. Requests are intercepted and return realistic responses.Request
URL Parameters
| Parameter | Description |
|---|---|
service | Service slug (e.g., stripe, shopify) |
path | Original API path (e.g., v1/charges) |
Headers
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your Mokra API key |
X-World-Id | No | World ID for stateful testing |
Example: Stripe charge
Response
Example: Shopify order
Response
Stateful requests
To maintain state across requests, include a World ID:Supported methods
All HTTP methods are supported:- GET
- POST
- PUT
- PATCH
- DELETE
Errors
| Status | Description |
|---|---|
| 401 | Invalid or missing API key |
| 404 | Unknown service or endpoint |
| 422 | Invalid request format |