freshdesk-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and authenticate Freshdesk webhooks sent by the "Trigger Webhook" action in Freshdesk automation rules (Ticket Creation and Ticket Updates). Use when…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Freshdesk Webhooks
Freshdesk doesn't have webhook subscriptions. A webhook is an action inside an automation rule: Admin → Workflows → Automations → Ticket Creation (or Ticket Updates) → New Rule → Trigger Webhook. When the rule's conditions match, Freshdesk calls the URL you entered with the method, headers and body you configured.
This differs from most providers in three ways:
- There is no signature. Freshdesk doesn't sign the body. There's no HMAC,
signing secret or timestamp header, so don't go looking for an
X-Freshdesk-Signature. It doesn't exist. - You write the payload. With Advanced content you write the JSON body
yourself using placeholders such as
{{ticket.id}}. There are no fixed event type strings, so you have to put an event name in the body yourself. - You choose the request. The method (GET/POST/PUT/PATCH/DELETE), encoding (JSON, XML or XML-Encoded) and headers are all set in the rule.
When to Use This Skill
- How do I receive Freshdesk webhooks?
- How do I verify Freshdesk webhook signatures? (You can't. Send a shared secret in a custom header instead.)
- How do I set up "Trigger Webhook" in a Freshdesk automation rule?
- What payload does a Freshdesk webhook send? (Whatever you write in the Content section.)
- How do I tell a ticket-created webhook from a ticket-updated one?
- Why does my Freshdesk webhook keep arriving every 30 minutes? (Retries after a non-2xx response.)
Verification (core): a shared secret custom header
In the Trigger Webhook action, turn on Add custom headers and add one line
in Freshdesk's X-Sample-CustomHeader1: VALUE format:
X-Freshdesk-Webhook-Secret: 3f9c0e...a long random hex value...
The header name is your choice. Freshdesk treats header names as case-insensitive and sends the value exactly as entered. Check the header in constant time before you parse the body:
const crypto = require('crypto');
// NOT a Freshdesk signature. This is a secret YOU put in the rule's custom headers.
function verifyFreshdeskSecret(headerValue) {
const expected = process.env.FRESHDESK_WEBHOOK_SECRET;
if (!expected) throw new Error('FRESHDESK_WEBHOOK_SECRET is not set'); // fail closed
if (typeof headerValue !== 'string') return false;
const a = Buffer.from(headerValue);
const b = Buffer.from(expected);
// Length check first: timingSafeEqual throws on a length mismatch.
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
// Express lowercases header names: req.get('X-Freshdesk-Webhook-Secret') works too.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Return 401 for a missing or wrong secret and 500 when the secret isn't
configured, so the endpoint never accepts everything by accident. Use a value
without spaces, such as openssl rand -hex 32. Freshdesk's docs say the
trigger won't run if a header has spaces in it.
"Requires authentication" is a separate toggle in the same action ("provide your API key"). Freshdesk doesn't document what it puts on the wire, so use the custom header described above. See references/verification.md.
The Payload: you define it
Choose Encoding: JSON and Content: Advanced, then write a body with a
fixed event field for each rule. Here's the body for the Ticket Creation rule:
{
"event": "ticket_created",
"triggered_event": "{{Triggered event}}",
"ticket": {
"id": "{{ticket.id}}",
"subject": "{{ticket.subject}}",
"status": "{{ticket.status}}",
"priority": "{{ticket.priority}}",
"requester_email": "{{ticket.requester.email}}",
"url": "{{ticket.url}}"
}
}
The Ticket Updates rule uses the same body with "event": "ticket_updated".
eventis this skill's convention, not a Freshdesk field. Freshdesk defines no event-type strings for webhooks.{{Triggered event}}is "available only in webhooks and returns the name of the event that triggered the rule". Freshdesk doesn't list its possible values, so log it but don't branch on it.- Placeholder values are substituted as text. Treat them as strings and
re-fetch the ticket from the Freshdesk API (
GET /api/v2/tickets/{id}) before you act on anything important. - Simple Content sends a list of ticket properties you pick, in a format Freshdesk doesn't document. Use Advanced so the body is predictable.
Events (this skill's event values)
event |
Rule tab | Fires when |
|---|---|---|
ticket_created |
Ticket Creation | A new ticket matches the rule's conditions |
ticket_updated |
Ticket Updates | An update to a ticket matches the rule's conditions (e.g. "Status is updated", "Customer replies to ticket") |
If an event value isn't one you handle, log it and return 200. If the body
has no event field, the rule is misconfig
Установить freshdesk-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл freshdesk-webhooks?
Receive and authenticate Freshdesk webhooks sent by the "Trigger Webhook" action in Freshdesk automation rules (Ticket Creation and Ticket Updates). Use when building a Freshdesk webhook receiver, securing it with a shared secret custom header (Freshdesk has no HMAC signature), writing the Advanced JSON payload with placeholders like {{ticket.id}} and {{Triggered event}}, handling ticket_created / ticket_updated deliveries, or debugging Freshdesk webhook retries (every 30 minutes, 48 calls) and the 1000 calls/hour limit.
Как установить скилл freshdesk-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл freshdesk-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic