HappyFox MCP by usefulapi
v1.41.1Triage HappyFox tickets, contacts and KB articles, run reports, and reply or add private notes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
happyfox_list_tickets List or search tickets
List tickets, newest activity first, with optional filters and HappyFox's search syntax. Paginated (page_info + data). Search `q` examples: `status:"New","In Progress"`, `priority:"High"`, `assignee:none`, `tag:"billing"`, `contact:"jane@example.com"`, `unresponded:true`, `breached:true`, `duedate:overdue`, `created-after:"2026/01/31"`, `last-modified-on-or-after:"2026/09/01"`, `"Custom Field":"value"`. Separate several filters with a space. HappyFox: GET /api/1.1/json/tickets/.
| Parameter | Type | Description |
|---|---|---|
category | integer | Only tickets in this category id (happyfox_list_categories). |
fields | string | Comma-separated top-level fields to return, e.g. id,display_id,subject,status — keeps responses small. |
minify_response | boolean | If true, return only ticket ids. |
page | integer | Page number, starting at 1. |
q | string | HappyFox search/filter string (see description). |
size | integer | Results per page, 1-50 (HappyFox default 10). |
sort | string | Sort key, e.g. created (newest first), createa, updated, due, priorityd. |
status | string | `_all` (default), `_pending` (every pending-behaviour status), or a status id from happyfox_list_statuses. |
happyfox_get_ticket Get one ticket
Fetch a ticket with its full conversation: status, priority, category, contact, assignee, custom fields, SLA breaches and every update (messages, private notes, property changes, attachment links that expire in 5 minutes). HappyFox: GET /api/1.1/json/ticket/<ticket_number>/.
| Parameter | Type | Description |
|---|---|---|
ticket_number * | integer | The ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id. |
show_cf_changes | boolean | Include the history of custom-field changes in the updates. |
happyfox_list_contacts List or search contacts
List contacts (customers), paginated, or search them. Search `q` fields: name, email, phone (digits only, no +), updated_since, created_since — e.g. `name:adam email:adam@example.com` (space-separated, all must match). HappyFox: GET /api/1.1/json/users/.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. |
q | string | Search string, `field:value` pairs separated by spaces. |
size | integer | Results per page, 1-50 (HappyFox default 10). |
happyfox_get_contact Get one contact
Fetch a contact by id or by email address — phones, contact groups, ticket counts and custom fields. HappyFox: GET /api/1.1/json/user/<id or email>/.
| Parameter | Type | Description |
|---|---|---|
contact * | string | The contact's numeric id (e.g. "33") or email address. |
happyfox_list_contact_groups List contact groups
List contact groups (typically customer companies) with their tagged email domains. HappyFox: GET /api/1.1/json/contact_groups/.
happyfox_get_contact_group Get one contact group
Fetch a contact group and its member contacts. HappyFox: GET /api/1.1/json/contact_group/<id>/.
| Parameter | Type | Description |
|---|---|---|
contact_group_id * | integer | The contact group id. |
happyfox_list_categories List categories
List ticket categories (queues) with their ids — needed to create a ticket or filter tickets. HappyFox: GET /api/1.1/json/categories/.
happyfox_list_staff List agents
List agents (staff) with their ids, roles, categories and active flag — the `staff` id every reply/note needs, and assignee ids. HappyFox: GET /api/1.1/json/staff/.
happyfox_list_statuses List statuses
List ticket statuses with ids and behaviour (pending / completed) — ids used to change a ticket's status. HappyFox: GET /api/1.1/json/statuses/.
happyfox_list_priorities List priorities
List ticket priorities with ids — ids used to set a ticket's priority. HappyFox: GET /api/1.1/json/priorities/.
happyfox_list_ticket_custom_fields List ticket custom fields
List ticket custom fields: id, type, choices (with choice ids), required flags and categories. Use the ids as t-cf-<id>. HappyFox: GET /api/1.1/json/ticket_custom_fields/.
happyfox_list_contact_custom_fields List contact custom fields
List contact custom fields: id, type, choices and required flag. Use the ids as c-cf-<id>. HappyFox: GET /api/1.1/json/user_custom_fields/.
happyfox_list_reports List reports
List the saved reports (id, name, description) from the Reports module. HappyFox: GET /api/1.1/json/reports/.
happyfox_get_report_summary Get a report summary
Summary counts for a saved report: ticket, completed, assigned, pending and unassigned counts. HappyFox: GET /api/1.1/json/report/<id>/.
| Parameter | Type | Description |
|---|---|---|
report_id * | integer | The report (from happyfox_list_reports) id. |
happyfox_get_report_tabular_data Get a report's ticket rows
The tabular view of a saved report — one row per ticket (display_id, subject, status, assignee, due date), paginated. HappyFox: GET /api/1.1/json/report/<id>/tabulardata/.
| Parameter | Type | Description |
|---|---|---|
report_id * | integer | The report (from happyfox_list_reports) id. |
page | integer | Page number, starting at 1. |
size | integer | Results per page, 1-50 (HappyFox default 10). |
happyfox_list_kb_articles Export knowledge-base articles
Export the knowledge base: external (customer-facing) articles by default, or internal (agent-only) articles. HappyFox: GET /api/1.1/json/kb/articles/ or /kb/internal-articles/.
| Parameter | Type | Description |
|---|---|---|
internal | boolean | true = internal articles; false/omitted = external articles. |
happyfox_create_ticket Create a ticket
Open a new ticket on behalf of a contact (created if the email is new). Needs a category id (a public category), a subject and a message in `text` or `html`. HappyFox: POST /api/1.1/json/tickets/.
| Parameter | Type | Description |
|---|---|---|
category * | integer | The category (happyfox_list_categories; must be public) id. |
email * | string | Contact email address. |
name * | string | Contact name. |
subject * | string | Ticket subject. |
assignee | Agent id to assign the ticket to (from happyfox_list_staff); null to unassign. | |
bcc | string | BCC email addresses, as a comma-separated string. |
cc | string | CC email addresses, as a comma-separated string. |
custom_fields | object | Custom field values keyed "t-cf-<id>" / "c-cf-<id>". Ticket (t-cf-) and contact (c-cf-) fields; required ones must be present. Values: text = string, number = number, dropdown = choice id, multiple ch… |
due_date | string | Due date, yyyy-mm-dd or dd/mm/yyyy. |
html | string | Message in HTML (text or html is required). |
phone | string | Contact phone number. |
priority | integer | Priority id (happyfox_list_priorities); defaults to the default priority. |
tags | string | Tags, as a comma-separated string. |
text | string | Message in plain text (text or html is required). |
visible_only_staff | boolean | true = private ticket, visible to staff only. |
happyfox_add_staff_reply Reply to a ticket as an agent
Add an agent reply to a ticket and/or change its status, priority, assignee, due date or tags. The contact is emailed ONLY if update_customer is true (HappyFox default: false). With no message it just updates properties. Moving to a completed status may require the category's compulsory custom fields. HappyFox: POST /api/1.1/json/ticket/<ticket_number>/staff_update/.
| Parameter | Type | Description |
|---|---|---|
staff * | integer | The agent making the reply (happyfox_list_staff) id. |
ticket_number * | integer | The ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id. |
assignee | Agent id to assign the ticket to (from happyfox_list_staff); null to unassign. | |
bcc | string | BCC email addresses, as a comma-separated string. |
cc | string | CC email addresses, as a comma-separated string. |
custom_fields | object | Custom field values keyed "t-cf-<id>". Ticket fields (ids from happyfox_list_ticket_custom_fields); compulsory-on-completion fields are required when closing. Values: text = string, number = number, d… |
due_date | string | Due date, yyyy-mm-dd or dd/mm/yyyy. |
html | string | Reply in HTML. |
plaintext | string | Reply in plain text. |
priority | integer | New priority id (happyfox_list_priorities). |
send_survey | boolean | true = send the satisfaction survey. |
status | integer | New status id (happyfox_list_statuses). |
subject | string | Override the subject of the email sent to the contact. |
tags | string | Tags to set, as a comma-separated string. |
time_spent | integer | Minutes to add to the ticket's time spent (some categories require it). |
update_customer | boolean | true = send the reply to the contact by email. Default false. |
happyfox_add_private_note Add a private note to a ticket
Add an internal note (never sent to the contact), optionally alerting agents and changing status, priority, assignee, due date or tags. HappyFox: POST /api/1.1/json/ticket/<ticket_number>/staff_pvtnote/.
| Parameter | Type | Description |
|---|---|---|
staff * | integer | The agent adding the note (happyfox_list_staff) id. |
ticket_number * | integer | The ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id. |
alert | string | Send a private alert: `s` = all subscribers, `c` = all agents in the ticket's category, or an agent id. |
assignee | Agent id to assign the ticket to (from happyfox_list_staff); null to unassign. | |
custom_fields | object | Custom field values keyed "t-cf-<id>". Ticket fields (ids from happyfox_list_ticket_custom_fields); compulsory-on-completion fields are required when closing. Values: text = string, number = number, d… |
due_date | string | Due date, yyyy-mm-dd or dd/mm/yyyy. |
html | string | Note in HTML. |
plaintext | string | Note in plain text. |
priority | integer | New priority id (happyfox_list_priorities). |
status | integer | New status id (happyfox_list_statuses). |
tags | string | Tags to set, as a comma-separated string. |
time_spent | integer | Minutes to add to the ticket's time spent (some categories require it). |
happyfox_update_ticket_tags Add or remove ticket tags
Add and/or remove tags on a ticket without touching anything else. HappyFox: POST /api/1.1/json/ticket/<ticket_number>/update_tags/.
| Parameter | Type | Description |
|---|---|---|
staff_id * | integer | The agent making the change (shown in the ticket history) id. |
ticket_number * | integer | The ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id. |
add | string | Tags to add, as a comma-separated string. |
remove | string | Tags to remove, as a comma-separated string. |
happyfox_update_ticket_custom_fields Edit a ticket's custom fields
Set ticket custom-field values (t-cf-<id>, ids from happyfox_list_ticket_custom_fields). HappyFox: POST /api/1.1/json/ticket/<ticket_number>/update_custom_fields/.
| Parameter | Type | Description |
|---|---|---|
custom_fields * | object | Custom field values keyed "t-cf-<id>". Ticket fields only. Values: text = string, number = number, dropdown = choice id, multiple choice = array of choice ids, date = yyyy-mm-dd. |
staff * | integer | The agent making the change id. |
ticket_number * | integer | The ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id. |
happyfox_create_contact Create a contact
Create a contact. HappyFox treats this as create-or-edit keyed on email: if the email already exists that contact is updated, and any contact custom field NOT passed is reset — use happyfox_update_contact to edit an existing contact. HappyFox: POST /api/1.1/json/users/.
| Parameter | Type | Description |
|---|---|---|
email * | string | Contact email address. |
name * | string | Contact name. |
custom_fields | object | Custom field values keyed "c-cf-<id>". Contact fields (happyfox_list_contact_custom_fields); required ones must be present. Values: text = string, number = number, dropdown = choice id, multiple choic… |
phones | array | Phone numbers. |
happyfox_update_contact Edit a contact
Edit an existing contact's name, email or contact custom fields (c-cf-<id>). Phone numbers are edited via happyfox_create_contact with the phone id. HappyFox: POST /api/1.1/json/user/<id>/.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | The contact id. |
custom_fields | object | Custom field values keyed "c-cf-<id>". Contact fields. Values: text = string, number = number, dropdown = choice id, multiple choice = array of choice ids, date = yyyy-mm-dd. |
email | string | New email address. |
name | string | New name. |