A help desk inbox, a contact form or a ticket detail view needs tickets and replies before a support backend exists. The support tickets template gives you a small help desk API behind a real URL: tickets with status and priority, and the replies below them.
What you get
The template creates a project with the base path /tickets-api and 5 endpoints. Each endpoint has one ready response, so the API answers as soon as the project exists.
| Method | Path | What it answers |
|---|---|---|
GET |
/tickets |
200 with eight generated tickets. |
GET |
/tickets/:id |
200 with one ticket. The id is the one from the path. |
POST |
/tickets |
201 with subject, message and priority from the request body, a generated id and the status open. |
GET |
/tickets/:id/replies |
200 with four generated replies for the ticket in the path. |
POST |
/tickets/:id/replies |
201 with author and text from the request body and a generated id. |
A ticket in the list has id, subject, status (open, pending, solved or closed), priority (low, normal, high or urgent), requester, replyCount and updatedAt. The single ticket adds message, assignee and createdAt, and its requester is an object with name and email. A reply has id, ticketId, author, authorRole (customer or agent), text and createdAt. Subjects and texts are generated filler sentences, not readable requests.
Sample response
$ curl -s -X POST $URL/tickets-api/tickets/318/replies \
-H "Content-Type: application/json" \
-d '{"author":"Mira Keller","text":"We reset your code. Please try again."}'
{
"id": "5312",
"ticketId": "318",
"author": "Mira Keller",
"authorRole": "agent",
"text": "We reset your code. Please try again.",
"createdAt": "2026-11-15T09:12:44Z"
}
ticketId is the id from the path, author and text come from your request, and authorRole is always agent. The id and createdAt are generated on every call. Without an author, the mock uses a generated name.
How to start
- Sign up at
https://app.mockhop.com/register. The quickstart explains the account and the address of your organization. - Open Projects and select Start from a template.
- Choose Example support tickets API and select Use template.
Then call the 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 $URL/tickets-api/tickets
$ curl -s $URL/tickets-api/tickets/318/replies
The first call returns eight tickets, the second four replies with the ticketId 318.
What to do next
- Change the responses. Open an endpoint and edit the status code, headers and body of its response, or add more responses with matching rules.
- Add error cases and delays. For example a
404for an unknown ticket, a422for an empty subject, or a429to see how your form handles a rate limit. See Simulate API errors, timeouts and rate limits. - Use scenarios for flows. For example a ticket that is
openon the first call andsolvedon the next. See Scenarios; scenarios are included from the Pro plan. - Export the project. Under Import/Export you can download the project as an OpenAPI 3.0 file.
Good to know
- Nothing is sent. The template is an example shape for your own code: it sends no email, notifies no agent and follows no help desk product's API.
- Responses are generated per request and the mock keeps no state. A ticket you create is not in the list, and a reply you add does not appear in
GET /tickets/:id/replies. replyCountis a random number between0and12. It does not match the four replies the list returns, and it does not change when you add one.GET /ticketsalways returns eight tickets with the ids1to8. There is no paging, filtering or search.- The template creates a new project, and no other project in your organization may use the base path
/tickets-api. The Free plan includes one project. - You can change or delete the project and each of its endpoints at any time.
New to Mockhop? Start with the quickstart. Plans: pricing.