REST API reference
Every address below starts with your base address,
https://example.com/wp-json/jshd/v1. See REST API for signing
in, paging and errors. The same list, generated from the same source, is in the
What it offers table on API & Webhooks → API and in the OpenAPI
document linked there.
All operations
Section titled “All operations”| Call | What it does | Permission | Checked on that ticket |
|---|---|---|---|
GET /tickets |
List tickets the caller may see. | queue.view |
|
POST /tickets |
Raise a ticket. | ticket.create |
|
GET /tickets/{id} |
One ticket, with what the caller may do to it. | ticket.view |
Yes |
PATCH /tickets/{id} |
Change a ticket’s status, priority, department or owner. | ticket.edit |
Yes |
DELETE /tickets/{id} |
Delete a ticket. | ticket.delete |
Yes |
GET /tickets/{id}/replies |
The conversation on a ticket. | ticket.view |
Yes |
POST /tickets/{id}/replies |
Answer a ticket. | ticket.reply |
Yes |
GET /tickets/{id}/notes |
Internal notes on a ticket. | ticket.note |
Yes |
POST /tickets/{id}/notes |
Write an internal note. | ticket.note |
Yes |
GET /tickets/{id}/attachments |
What is attached to a ticket: details and a download address, never the file itself. | ticket.view |
Yes |
GET /tickets/{id}/sla |
The service level clocks on a ticket. | ticket.view |
Yes |
GET /search |
Search tickets the caller may see. | queue.view |
|
GET /customers |
People who have raised tickets. | customer.view |
|
GET /agents |
The agents on this desk, and whether each is free. | queue.view |
|
GET /statuses |
The statuses this desk uses. | queue.view |
|
GET /priorities |
The priorities this desk uses. | queue.view |
|
GET /departments |
The departments on this desk. | queue.view |
|
GET /tags |
The tags in use. | queue.view |
|
GET /reports/sla |
Service level attainment, grouped. | report.view |
|
GET /reports/volume |
Tickets raised and resolved over a period. | report.view |
|
GET /me |
Who the caller is and what they may do. | Any signed-in account |
Tickets
Section titled “Tickets”List: GET /tickets
Section titled “List: GET /tickets”| Parameter | What it does |
|---|---|
status |
Only this status id (see /statuses). |
priorityid |
Only this priority id. |
departmentid |
Only this department id. |
staffid |
Only tickets assigned to this agent id. |
unassigned |
true for tickets nobody is assigned to. |
since |
Only tickets updated at or after this date. |
order |
desc (default) or asc, by last update. |
page, per_page |
Paging. See REST API. |
Each ticket in the list looks like this:
{ "id": 4, "reference": "kX7bQ2mtw", "subject": "Checkout timeout on mobile", "message": "<p>…</p>", "status": 1, "priorityid": 1, "departmentid": 1, "helptopicid": 0, "productid": 0, "staffid": 0, "customer": { "name": "Priya Shah", "email": "priya@example.com", "uid": 3 }, "answered": false, "overdue": false, "via_email": false, "created": "2026-10-20T09:12:00+00:00", "updated": "2026-10-21T14:03:00+00:00", "last_reply": null, "closed": null}reference is the ticket ID customers see. Dates that aren’t set are null.
One ticket: GET /tickets/{id}
Section titled “One ticket: GET /tickets/{id}”The same fields, plus allowed_actions (what the caller may do with this
ticket) and, when the Service Levels & Automation pack’s SLA engine is on, sla
(the same as /tickets/{id}/sla).
Raise a ticket: POST /tickets
Section titled “Raise a ticket: POST /tickets”Send JSON. Returns 201 with the new ticket.
| Field | Required | What it does |
|---|---|---|
subject |
Yes | The subject. |
message |
Yes | The customer’s message. |
email |
Whose ticket it is. Leave it out and the ticket belongs to the caller. An address other than the caller’s needs the ticket.create_on_behalf permission. If a WordPress account has that address, the ticket appears in their My Tickets. |
|
name |
The customer’s name. Defaults to the caller’s display name when email is left out. |
|
departmentid |
Department id. | |
priorityid |
Priority id. Your default priority if left out. | |
helptopicid |
Help topic id. | |
productid |
Product id. |
Accepts an Idempotency-Key header.
Change a ticket: PATCH /tickets/{id}
Section titled “Change a ticket: PATCH /tickets/{id}”| Field | Permission also needed | Changes |
|---|---|---|
status |
ticket.status |
The status, by id. |
priorityid |
ticket.priority |
The priority. |
departmentid |
ticket.transfer |
Moves the ticket to another department. |
staffid |
ticket.assign |
Assigns it to another agent. |
reason |
Recorded in the ticket’s history. “Changed through the API.” if left out. |
Each change is made, recorded and announced on its own, so a webhook listening
for assignment hears only about the assignment. The answer is the ticket plus
changed (each field that was attempted, and whether it actually changed) and,
if any were refused, refused with the reason for each. If every change was
refused the answer is 403 jshd_nothing_changed.
Delete: DELETE /tickets/{id}
Section titled “Delete: DELETE /tickets/{id}”Returns { "deleted": true, "id": 4 }. Recorded in the history as “Deleted
through the API.”
Conversation and notes
Section titled “Conversation and notes”GET /tickets/{id}/replies returns each reply’s id, message, author,
uid and created.
POST /tickets/{id}/replies takes message (required). The reply is sent and
e-mailed exactly as one written at the desk. Returns 201 with ticket_id and
reply_id. Accepts an Idempotency-Key header.
GET /tickets/{id}/notes returns each note’s id, note, author,
visibility and created. Notes restricted to certain people are left out for
everyone else.
POST /tickets/{id}/notes takes note (required). Returns 201 with ticket_id
and note_id.
Attachments
Section titled “Attachments”GET /tickets/{id}/attachments returns each file’s id, name, size,
created and url. The url is the help desk’s normal download link, which
applies the usual check on who may download it.
Service levels
Section titled “Service levels”GET /tickets/{id}/sla returns one entry per clock: target, policy,
state, due, minutes_left, paused_seconds, breached_at and met_at.
It is empty without the Service Levels & Automation pack.
GET /reports/sla takes by (default policy), from and to. Without the
Service Levels & Automation pack it answers 404 jshd_no_sla.
Search
Section titled “Search”GET /search takes q (required) plus page and per_page, and returns
tickets in the same shape as the list. The total is in X-WP-Total.
People and lookups
Section titled “People and lookups”GET /customers takes search, page and per_page.
GET /agents returns each visible agent’s id, name, email and
departmentid. With the Agents & Teams pack’s
availability, each also has available (true or false) and
availability_reason.
GET /statuses, /priorities, /departments and /tags each return a list of
id and name.
Volume report
Section titled “Volume report”GET /reports/volume takes from and to (the last 30 days if left out) and
returns:
{ "from": "2026-09-21 00:00:00", "to": "2026-10-21 00:00:00", "days": [ { "day": "2026-10-20", "raised": "3", "closed": "1" } ] }raised counts tickets created that day; closed counts how many of those
tickets are closed now.
Who am I: GET /me
Section titled “Who am I: GET /me”{ "wpuid": 7, "kind": "agent", "staffid": 2, "name": "Jordan Lee", "email": "jordan@example.com", "may": ["queue.view", "ticket.view", "ticket.reply"], "api": { "version": 1, "namespace": "jshd/v1" } }kind is admin, agent, customer or guest. Call it first, so your
integration can hide buttons the account isn’t allowed to use.

