This guide takes you from a new account to a mock URL you can call with curl, and then makes the response react to what you send.
1. Create an account
Sign up at https://app.mockhop.com/register.
- With email and password: we send you a confirmation link that is valid for 24 hours. Open it while you're signed in to Mockhop, or sign in after opening it. Until you confirm, you can use the dashboard, but your mocks aren't reachable from outside. If you don't confirm within seven days, we delete the account.
- With Google or GitHub: your email address is already confirmed by the provider.
When you sign up, you also name your organization. Mockhop derives the organization's address from the name, for example acme in acme.mockhop.cloud, and the sign-up form shows it before you submit. The address can't be changed later.
2. Create a project
Open Projects and select New project.
| Field | What to enter |
|---|---|
| Name | At least 3 characters, for example Payments. |
| Base path | The first part of every mock address in this project, for example /payments. |
The base path:
- needs at least one character after the
/and can be up to 255 characters long - must be unique in your organization
- can't be a reserved path such as
/healthor/metrics, and can't start with/api,/mock,/graphqlor/ws
Your project's mock address is https://<organization>.mockhop.cloud/<base path>, for example https://acme.mockhop.cloud/payments. The project page shows it in full, with a copy button.
3. Add an endpoint
Open the project and select New endpoint. A dialog opens.
| Field | What to enter |
|---|---|
| Method | GET, POST, PUT, PATCH, DELETE, OPTIONS or HEAD. Here: POST. |
| Path | Relative to the base path, for example /orders. |
| Name | Optional. Without a name, the method and path are used. |
Under Response, set the Status code to 201 and the Body (JSON) to:
{
"status": "PENDING"
}
Select Create endpoint. This becomes the endpoint's default response. You can add headers, matching rules and more responses on the endpoint's page later.
Path patterns:
:namematches one path segment (/orders/:id).*matches within one segment (/api/*/users).- A trailing
/*matches everything below a prefix (/files/*).
4. Call your mock
Replace acme with your organization's address. Your mocks answer from outside once you've confirmed your email address.
$ URL=https://acme.mockhop.cloud
$ curl -s -X POST $URL/payments/orders
{"status":"PENDING"}
The call appears under Request logs with its status, latency, headers and body.
5. Make the response react to the request
Edit the response body:
{
"orderId": {{ fakerInt 10000 99999 }},
"customerId":
"{{ jsonPath .body "customerId" }}",
"status": "PENDING",
"createdAt": "{{ timestamp }}"
}
As soon as a body contains {{, Mockhop renders it as a template on every call. You don't need to switch anything on.
Send a request with a body:
$ curl -s -X POST $URL/payments/orders \
-H "Content-Type: application/json" \
-d '{"customerId":"cust-456"}'
{
"orderId": 48213,
"customerId": "cust-456",
"status": "PENDING",
"createdAt": "2026-11-14T18:42:07Z"
}
orderId changes on every call. customerId comes from your request. createdAt is the current time in RFC 3339 format. In the response editor, Show template help lists the available functions.