HappyFox MCP by usefulapi

v1.41.1
io.usefulapi/happyfox Checked 3 days ago Published 1 day ago

Triage 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/.

ParameterTypeDescription
categoryintegerOnly tickets in this category id (happyfox_list_categories).
fieldsstringComma-separated top-level fields to return, e.g. id,display_id,subject,status — keeps responses small.
minify_responsebooleanIf true, return only ticket ids.
pageintegerPage number, starting at 1.
qstringHappyFox search/filter string (see description).
sizeintegerResults per page, 1-50 (HappyFox default 10).
sortstringSort key, e.g. created (newest first), createa, updated, due, priorityd.
statusstring`_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>/.

ParameterTypeDescription
ticket_number *integerThe ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id.
show_cf_changesbooleanInclude 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/.

ParameterTypeDescription
pageintegerPage number, starting at 1.
qstringSearch string, `field:value` pairs separated by spaces.
sizeintegerResults 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>/.

ParameterTypeDescription
contact *stringThe 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>/.

ParameterTypeDescription
contact_group_id *integerThe 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>/.

ParameterTypeDescription
report_id *integerThe 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/.

ParameterTypeDescription
report_id *integerThe report (from happyfox_list_reports) id.
pageintegerPage number, starting at 1.
sizeintegerResults 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/.

ParameterTypeDescription
internalbooleantrue = 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/.

ParameterTypeDescription
category *integerThe category (happyfox_list_categories; must be public) id.
email *stringContact email address.
name *stringContact name.
subject *stringTicket subject.
assigneeAgent id to assign the ticket to (from happyfox_list_staff); null to unassign.
bccstringBCC email addresses, as a comma-separated string.
ccstringCC email addresses, as a comma-separated string.
custom_fieldsobjectCustom 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_datestringDue date, yyyy-mm-dd or dd/mm/yyyy.
htmlstringMessage in HTML (text or html is required).
phonestringContact phone number.
priorityintegerPriority id (happyfox_list_priorities); defaults to the default priority.
tagsstringTags, as a comma-separated string.
textstringMessage in plain text (text or html is required).
visible_only_staffbooleantrue = 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/.

ParameterTypeDescription
staff *integerThe agent making the reply (happyfox_list_staff) id.
ticket_number *integerThe ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id.
assigneeAgent id to assign the ticket to (from happyfox_list_staff); null to unassign.
bccstringBCC email addresses, as a comma-separated string.
ccstringCC email addresses, as a comma-separated string.
custom_fieldsobjectCustom 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_datestringDue date, yyyy-mm-dd or dd/mm/yyyy.
htmlstringReply in HTML.
plaintextstringReply in plain text.
priorityintegerNew priority id (happyfox_list_priorities).
send_surveybooleantrue = send the satisfaction survey.
statusintegerNew status id (happyfox_list_statuses).
subjectstringOverride the subject of the email sent to the contact.
tagsstringTags to set, as a comma-separated string.
time_spentintegerMinutes to add to the ticket's time spent (some categories require it).
update_customerbooleantrue = 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/.

ParameterTypeDescription
staff *integerThe agent adding the note (happyfox_list_staff) id.
ticket_number *integerThe ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id.
alertstringSend a private alert: `s` = all subscribers, `c` = all agents in the ticket's category, or an agent id.
assigneeAgent id to assign the ticket to (from happyfox_list_staff); null to unassign.
custom_fieldsobjectCustom 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_datestringDue date, yyyy-mm-dd or dd/mm/yyyy.
htmlstringNote in HTML.
plaintextstringNote in plain text.
priorityintegerNew priority id (happyfox_list_priorities).
statusintegerNew status id (happyfox_list_statuses).
tagsstringTags to set, as a comma-separated string.
time_spentintegerMinutes 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/.

ParameterTypeDescription
staff_id *integerThe agent making the change (shown in the ticket history) id.
ticket_number *integerThe ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id.
addstringTags to add, as a comma-separated string.
removestringTags 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/.

ParameterTypeDescription
custom_fields *objectCustom 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 *integerThe agent making the change id.
ticket_number *integerThe 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/.

ParameterTypeDescription
email *stringContact email address.
name *stringContact name.
custom_fieldsobjectCustom 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…
phonesarrayPhone 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>/.

ParameterTypeDescription
contact_id *integerThe contact id.
custom_fieldsobjectCustom 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.
emailstringNew email address.
namestringNew name.