/freshdesk:api-patternsfrom freshdesk
Documents Freshdesk REST API v2 patterns including header-based authentication, base URL, pagination with page/per_page and link header, rate limits, search query language with 300-result cap, and status/priority/source integer encodings. Useful when working with the Freshdesk MCP server.
Ships in freshdesk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Freshdesk MCP server exposes the Freshdesk cloud helpdesk: tickets,
conversations, contacts, companies, agents, groups, the nested solutions
knowledge base, SLA policies, and business hours. It wraps the official
Freshdesk REST API v2 (https://developers.freshdesk.com/api/) and presents
tools generically named freshdesk_<domain>_<action> (e.g.
freshdesk_tickets_search, freshdesk_contacts_list). Tool names below are
illustrative of the MCP surface.
Freshdesk's public API uses HTTP Basic authentication: the API key is the
username and a dummy X is the password (apikey:X). You never assemble that
Basic header yourself — the MCP server does the upstream translation. The
gateway-facing surface uses two X- headers, one credential per header:
| Header | Value |
|---|---|
X-Freshdesk-Domain | The account subdomain (the yourcompany in yourcompany.freshdesk.com) |
X-Freshdesk-Api-Key | The raw Freshdesk API key |
Both values are stored on the Freshdesk connection in Conduit, which
injects them as those headers on every request; nothing is set on the
client. The MCP server then translates them into the upstream Freshdesk
Basic auth (apikey:X).
All upstream Freshdesk calls target:
https://{domain}.freshdesk.com/api/v2
where {domain} is the account subdomain carried in X-Freshdesk-Domain.
Resource paths hang off this base — for example /tickets, /contacts,
/companies, /solutions/categories, /sla_policies, and
/business_hours.
Tools follow freshdesk_<domain>_<action> across the major Freshdesk
resources:
List endpoints accept query parameters page and per_page:
| Parameter | Description | Limit |
|---|---|---|
page | 1-based page number | — |
per_page | Items per page | Max 100 |
When more pages exist, Freshdesk returns a link response header containing
the URL of the next page (with rel="next"). Follow that link header rather
than guessing the next page value, and stop when it is absent. Some list
endpoints cap the total number of results that can be paged through — when a
list is capped, narrow the query (by date or status) instead of paging
indefinitely.
GET /api/v2/tickets?page=2&per_page=100
Link: <https://yourcompany.freshdesk.com/api/v2/tickets?page=3&per_page=100>; rel="next"
Freshdesk enforces a per-account, per-minute request limit. Every response carries the current rate-limit state:
| Header | Meaning |
|---|---|
X-RateLimit-Total | Total calls allowed per minute for the account |
X-RateLimit-Remaining | Calls remaining in the current window |
X-RateLimit-Used-CurrentRequest | Cost of the request just made |
Retry-After | Seconds to wait (present on HTTP 429) |
On HTTP 429 Too Many Requests, read Retry-After and back off for at least
that many seconds before retrying. Add jitter when retrying in a loop, and
spread bulk operations across windows rather than bursting.
async function requestWithRetry(call, maxRetries = 5) {
for (let attempt = 0; attempt < maxRetries; attempt++) {
const res = await call();
if (res.status === 429) {
const retryAfter = Number(res.headers.get('Retry-After')) || 30;
const jitter = Math.random() * 1000;
await sleep(retryAfter * 1000 + jitter);
continue;
}
return res;
}
}
Filtered search for tickets, contacts, and companies uses dedicated search endpoints and the Freshdesk query language:
GET /api/v2/search/tickets?query="status:2 AND priority:4"
GET /api/v2/search/contacts?query="..."
GET /api/v2/search/companies?query="..."
tag:'vip').AND / OR.status, priority, agent_id,
group_id, type, tag, created_at, and updated_at.YYYY-MM-DD values and support range comparisons,
e.g. created_at:>'2024-02-01'.Search is paged at 30 results per page with a maximum of 10 pages, so a single search returns at most 300 matching records. When a result set would exceed 300, tighten the query (narrower date window, add a status or group filter) and run multiple targeted searches rather than expecting one search to return everything.
# Open, urgent tickets
"status:2 AND priority:4"
# Resolved tickets for one agent in a date range
"status:4 AND agent_id:42 AND created_at:>'2024-02-01'"
# High or urgent tickets in a group
"group_id:7 AND (priority:3 OR priority:4)"
Ticket status, priority, and source are integers in both the API and
the query language:
| Value | Status |
|---|---|
| 2 | Open |
| 3 | Pending |
| 4 | Resolved |
| 5 | Closed |
| Value | Priority |
|---|---|
| 1 | Low |
| 2 | Medium |
| 3 | High |
| 4 | Urgent |
| Value | Source |
|---|---|
| 1 | |
| 2 | Portal |
| 3 | Phone |
(Additional source values exist for chat, feedback widget, and other channels; 1-3 are the most common in MSP workflows.)
| Status | Meaning | Action |
|---|---|---|
| 400 | Validation failed | Check required fields and encodings |
| 401 | Missing or invalid credentials | Re-check the Domain and API Key fields on the Freshdesk connection in Conduit |
| 403 | Authenticated but not permitted | Check the API key's agent scope |
| 404 | Unknown ticket / contact / company / article ID | Re-list or re-search to confirm |
| 429 | Rate limit exceeded | Read Retry-After and back off |
| 5xx | Freshdesk server error | Retry with exponential backoff |
status, priority, and source as integers everywhere — translate
them to labels only for human-readable output.list
pulls; respect the 300-result search cap by narrowing queries.per_page at 100 for bulk reads to minimize request count against the
per-minute rate limit.What SKILL.md sets; muted values are Claude Code's defaults
When working with Freshdesk authentication headers, base URL, pagination, rate limits, or the search query language for the Freshdesk MCP server. Use when: freshdesk api, freshdesk authentication, freshdesk pagination, freshdesk mcp, freshdesk search query, freshdesk rate limit, or freshdesk query language.
Three short reads, in order
5 skills in this plugin
/contacts-companiesFreshdesk Contacts & CompaniesFreshdesk contacts and companies: contact fields and the required contact-channel rule, contact CRUD plus merge and make_agent, company fields and domain-based auto-association, search and autocomplete lookups, and the MSP workflow of resolving a ticket requester to a contact and then to its parent company through the Freshdesk REST API v2.
/knowledge-baseFreshdesk Knowledge BaseFreshdesk Solutions knowledge base: the three-level categories -> folders -> articles hierarchy, article fields and draft/published status, finding an article by walking that tree (there is no KB search tool), and the MSP workflow of suggesting relevant KB articles to deflect or resolve a ticket, through the Freshdesk REST API v2.
/sla-business-hoursFreshdesk SLA & Business HoursFreshdesk SLA policies and business-hours calendars: policy and calendar fields, per-priority respond_within / resolve_within targets, how the business-hours vs 24x7 clock computes a ticket's fr_due_by and due_by, and breach / at-risk detection through the Freshdesk REST API v2.
/ticketingFreshdesk TicketingFreshdesk ticket operations: list, get, search, create, update, reply, notes, and conversation threads. Covers status/priority/source integer encodings, core requester / assignment / SLA fields, the search query language, and the MSP creation, triage, and escalation workflows through the Freshdesk REST API v2.
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin freshdeskOther plugins' skills for the same job