Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

freshdesk-api

БесплатноБез исполняемых скриптовНе проверен

Expert in Freshdesk helpdesk API for building integrations, extracting support data, managing tickets/contacts/companies, and automating support workflows…

ckorhonenот ckorhonen★ 35 звёзд на GitHub7 установок в других каталогах

Об этом скилле

Freshdesk API

Overview

Build integrations with Freshdesk's helpdesk platform using their REST API v2. Manage support tickets, contacts, companies, agents, and automate workflows. The API supports full CRUD operations on all major resources with filtering, pagination, and embedded data.

When to Use

  • Building helpdesk integrations or support dashboards
  • Extracting and analyzing support ticket data
  • Automating ticket routing, assignment, or updates
  • Syncing contacts/companies with CRM systems
  • Creating custom reporting on support metrics
  • Implementing chatbots or AI-powered support tools
  • Migrating data to/from Freshdesk

Prerequisites

API Key Setup

  1. Log into Freshdesk as an Admin
  2. Click your profile picture → Profile Settings
  3. Find your API Key on the right sidebar
  4. Store securely (never commit to version control)
# Set environment variable
export FRESHDESK_API_KEY="your-api-key-here"
export FRESHDESK_DOMAIN="yourcompany"  # From yourcompany.freshdesk.com

Required Tools

  • curl for HTTP requests
  • jq for JSON parsing (brew install jq on macOS)
  • For SDKs: Python 3.6+, Node.js 14+, or Ruby 2.7+

API Base URL

https://{domain}.freshdesk.com/api/v2/

Replace {domain} with your Freshdesk subdomain (e.g., acme for acme.freshdesk.com).

Authentication

Freshdesk uses HTTP Basic Authentication with your API key as the username and X as the password.

curl Example

# Using -u flag (username:password)
curl -u "$FRESHDESK_API_KEY:X" \
  "https://$FRESHDESK_DOMAIN.freshdesk.com/api/v2/tickets"

# Using Authorization header
curl -H "Authorization: Basic $(echo -n "$FRESHDESK_API_KEY:X" | base64)" \
  "https://$FRESHDESK_DOMAIN.freshdesk.com/api/v2/tickets"

Headers

Always include:

Content-Type: application/json

Quick Start

Get All Tickets

curl -u "$FRESHDESK_API_KEY:X" \
  -H "Content-Type: application/json" \
  "https://$FRESHDESK_DOMAIN.freshdesk.com/api/v2/tickets"

Create a Ticket

curl -u "$FRESHDESK_API_KEY:X" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
    "subject": "Support needed",
    "description": "Details of the issue...",
    "email": "[email protected]",
    "priority": 2,
    "status": 2
  }' \
  "https://$FRESHDESK_DOMAIN.freshdesk.com/api/v2/tickets"

Get a Contact

curl -u "$FRESHDESK_API_KEY:X" \
  "https://$FRESHDESK_DOMAIN.freshdesk.com/api/v2/contacts/12345"

Search Tickets

# Search by status and priority
curl -u "$FRESHDESK_API_KEY:X" \
  "https://$FRESHDESK_DOMAIN.freshdesk.com/api/v2/search/tickets?query=\"status:2 AND priority:3\""

Core Endpoints

Endpoint Description
/tickets Create, list, update, delete tickets
/contacts Manage customer contacts
/companies Manage company/organization records
/agents View and manage support agents
/groups Manage agent groups
/conversations Ticket replies, notes, forwards
/time_entries Time tracking on tickets
/surveys/satisfaction_ratings Customer satisfaction data
/products Product catalog management
/business_hours Business hours configuration
/email_configs Email settings
/sla_policies SLA policy management
/canned_responses Pre-defined response templates
/ticket_fields Custom ticket fields

See references/tickets-api.md for detailed ticket operations. See references/contacts-companies.md for contact/company management.

Rate Limits

Limits by API Version

Version Limit
API v1 1000 calls/hour
API v2 Per-minute, plan-based
Trial Plans 50 calls/minute

Rate Limit Headers

Every response includes:

Header Description
X-Ratelimit-Total Total calls allowed per minute
X-Ratelimit-Remaining Calls remaining this minute
X-Ratelimit-Used-CurrentRequest Credits used by this request

Handling Rate Limits

#!/usr/bin/env bash
# Retry with exponential backoff for 429 errors

max_retries=3
retry_count=0

while [ "$retry_count" -lt "$max_retries" ]; do
  response=$(curl -s -w "\n%{http_code}" -u "$FRESHDESK_API_KEY:X" \
    "https://$FRESHDESK_DOMAIN.freshdesk.com/api/v2/tickets")

  http_code=$(echo "$response" | tail -1)
  body=$(echo "$response" | sed '$d')

  if [ "$http_code" = "200" ]; then
    echo "$body"
    exit 0
  elif [ "$http_code" = "429" ]; then
    delay=$((2 ** retry_count))
    echo "Rate limited. Retrying in ${delay}s..." >&2
    sleep "$delay"
    retry_count=$((retry_count + 1))
  else
    echo "Error: HTTP $http_code" >&2
    echo "$body" >&2
    exit 1
  fi
done

echo "Max retries exceeded" >&2
exit 1

Credit System

Some operations consume multiple API credits:

  • Basic request: 1 credit
  • Including em
Полный SKILL.md на GitHub

Установить freshdesk-api в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/contacts-companies.mdreferences/sdk-examples.mdreferences/tickets-api.mdreferences/webhooks-automation.md

FAQ

Что делает скилл freshdesk-api?

Expert in Freshdesk helpdesk API for building integrations, extracting support data, managing tickets/contacts/companies, and automating support workflows. Use when working with Freshdesk, building helpdesk integrations, analyzing support ticket data, or creating customer support applications.

Как установить скилл freshdesk-api?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл freshdesk-api запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить freshdesk-api с