# Freshdesk

> Customer support and helpdesk platform

| | |
|---|---|
| **Company** | Freshworks Inc. |
| **Category** | Crm |
| **Protocol** | REST |
| **Website** | [freshdesk.com](https://freshdesk.com) |
| **API Docs** | [developers.freshdesk.com](https://developers.freshdesk.com/api/) |
| **Auth** | API Key |
| **Rate Limit** | Varies by plan (min 50 requests/minute) |
| **Pricing** | Free up to 10 agents, Growth from $15/agent/month |

---

## Overview

The Freshdesk API provides access to tickets, contacts, agents, companies, and knowledge base articles. Manage support workflows, automate ticket routing, track SLAs, and build custom helpdesk integrations.

## Use Cases

- Ticket management
- Customer support automation
- Knowledge base management
- SLA tracking
- Multi-channel support

## Installation

```bash
pip install "toolsconnector[freshdesk]"
```

Set your credentials:

```bash
export TC_FRESHDESK_CREDENTIALS=your-token
```

## Quick Start

```python
from toolsconnector.serve import ToolKit

kit = ToolKit(["freshdesk"], credentials={"freshdesk": "your-token"})

# List contacts
result = kit.execute("freshdesk_list_contacts", {"limit": 30, "page": 1})
print(result)
```

### MCP Server

```python
kit = ToolKit(["freshdesk"], credentials={"freshdesk": "your-token"})
kit.serve_mcp()  # Claude Desktop / Cursor connects instantly
```

### OpenAI Function Calling

```python
kit = ToolKit(["freshdesk"], credentials={"freshdesk": "your-token"})
tools = kit.to_openai_tools()
# Pass to: openai.chat.completions.create(tools=tools, ...)
```

## Authentication

### API Key

1. Create an account at [Freshdesk](https://freshdesk.com)
2. Navigate to API settings or developer console
3. Generate an API key or access token

[Get credentials &rarr;](https://support.freshdesk.com/en/support/solutions/articles/215517)

## Error Handling

```python
from toolsconnector.errors import RateLimitError, AuthError

try:
    result = kit.execute("freshdesk_list_contacts", {})
except RateLimitError as e:
    print(f"Rate limited. Retry in {e.retry_after_seconds}s")
except AuthError as e:
    print(f"Auth failed: {e.suggestion}")
```

## Actions

<!-- ACTIONS_START -->
<!-- This section is auto-generated from the connector spec. Do not edit manually. -->
<!-- ACTIONS_END -->

## Tips

- Use `search_tickets` for filtered queries and `list_agents` for paginated browsing
- Rate limit is Varies by plan (min 50 requests/minute) — use pagination and caching to minimize API calls
- Actions marked as destructive (`create_company`, `create_contact`, `create_ticket`) cannot be undone — use with caution
- This connector has 23 actions — use `ToolKit(include_actions=[...])` to expose only what your agent needs

## Related Connectors

- [Salesforce](../salesforce/) — Enterprise CRM
- [Hubspot](../hubspot/) — Marketing & sales CRM
- [Intercom](../intercom/) — Customer messaging
- [Zendesk](../zendesk/) — Support ticketing

---

*This connector is part of [ToolsConnector](https://github.com/sachinshelke/ToolsConnector) — the universal tool-connection primitive for Python and AI agents.*
