Freshdesk CLI Setup Freshdesk can be configured headlessly with `kosmokrator integrations:configure freshdesk`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure freshdesk --set api_key=" $FRESHDESK_API_KEY " --set domain=" $FRESHDESK_DOMAIN " --enable --read allow --write ask --json
kosmokrator integrations:doctor freshdesk --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Freshdesk Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call freshdesk.freshdesk_list_tickets '{
"page": 1,
"per_page": 1,
"filter": "example_filter",
"company_id": 1,
"requester_id": 1,
"email": "example_email"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:freshdesk freshdesk_list_tickets '{
"page": 1,
"per_page": 1,
"filter": "example_filter",
"company_id": 1,
"requester_id": 1,
"email": "example_email"
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs freshdesk --json
kosmo integrations:docs freshdesk.freshdesk_list_tickets --json
kosmo integrations:schema freshdesk.freshdesk_list_tickets --json
kosmo integrations:search "Freshdesk" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Freshdesk.
freshdesk.freshdesk_list_tickets Read read List support tickets from Freshdesk. Supports filtering by status, priority, and pagination. Returns ticket details including subject, status, priority, requester, and assignee.
page, per_page, filter, company_id, requester_id, email kosmo integrations:call freshdesk.freshdesk_list_tickets '{"page":1,"per_page":1,"filter":"example_filter","company_id":1,"requester_id":1,"email":"example_email"}' --json copy kosmo integrations:freshdesk freshdesk_list_tickets '{"page":1,"per_page":1,"filter":"example_filter","company_id":1,"requester_id":1,"email":"example_email"}' --json copy
freshdesk.freshdesk_get_ticket Read read Get full details of a specific support ticket including description, custom fields, conversation history, and associated contacts.
ticket_id kosmo integrations:call freshdesk.freshdesk_get_ticket '{"ticket_id":1}' --json copy kosmo integrations:freshdesk freshdesk_get_ticket '{"ticket_id":1}' --json copy
freshdesk.freshdesk_create_ticket Write write Create a new support ticket. Requires a subject, description, and requester email. Optionally set priority and status.
subject, description, email, priority, status, type, tags, group_id, assignee_id, cc_emails kosmo integrations:call freshdesk.freshdesk_create_ticket '{"subject":"example_subject","description":"example_description","email":"example_email","priority":1,"status":1,"type":"example_type","tags":"example_tags","group_id":1}' --json copy kosmo integrations:freshdesk freshdesk_create_ticket '{"subject":"example_subject","description":"example_description","email":"example_email","priority":1,"status":1,"type":"example_type","tags":"example_tags","group_id":1}' --json copy
freshdesk.freshdesk_update_ticket Write write Update an existing support ticket. Can change subject, description, status, priority, assignee, and other fields.
ticket_id, subject, description, priority, status, type, tags, group_id, assignee_id kosmo integrations:call freshdesk.freshdesk_update_ticket '{"ticket_id":1,"subject":"example_subject","description":"example_description","priority":1,"status":1,"type":"example_type","tags":"example_tags","group_id":1}' --json copy kosmo integrations:freshdesk freshdesk_update_ticket '{"ticket_id":1,"subject":"example_subject","description":"example_description","priority":1,"status":1,"type":"example_type","tags":"example_tags","group_id":1}' --json copy
freshdesk.freshdesk_delete_ticket Write write Permanently delete a support ticket. This action cannot be undone.
ticket_id kosmo integrations:call freshdesk.freshdesk_delete_ticket '{"ticket_id":1}' --json copy kosmo integrations:freshdesk freshdesk_delete_ticket '{"ticket_id":1}' --json copy
freshdesk.freshdesk_list_contacts Read read List customer contacts from Freshdesk. Supports pagination. Returns contact names, emails, and company associations.
page, per_page, email, company_id, mobile, phone kosmo integrations:call freshdesk.freshdesk_list_contacts '{"page":1,"per_page":1,"email":"example_email","company_id":1,"mobile":"example_mobile","phone":"example_phone"}' --json copy kosmo integrations:freshdesk freshdesk_list_contacts '{"page":1,"per_page":1,"email":"example_email","company_id":1,"mobile":"example_mobile","phone":"example_phone"}' --json copy
freshdesk.freshdesk_get_contact Read read Get full details of a specific customer contact including email, phone, company, and custom fields.
contact_id kosmo integrations:call freshdesk.freshdesk_get_contact '{"contact_id":1}' --json copy kosmo integrations:freshdesk freshdesk_get_contact '{"contact_id":1}' --json copy
freshdesk.freshdesk_create_contact Write write Create a new customer contact in Freshdesk. Requires an email address and name.
email, name, phone, mobile, company_id, job_title, tags kosmo integrations:call freshdesk.freshdesk_create_contact '{"email":"example_email","name":"example_name","phone":"example_phone","mobile":"example_mobile","company_id":1,"job_title":"example_job_title","tags":"example_tags"}' --json copy kosmo integrations:freshdesk freshdesk_create_contact '{"email":"example_email","name":"example_name","phone":"example_phone","mobile":"example_mobile","company_id":1,"job_title":"example_job_title","tags":"example_tags"}' --json copy
freshdesk.freshdesk_list_agents Read read List all helpdesk agents. Returns agent details including name, email, availability, and group memberships.
page, per_page kosmo integrations:call freshdesk.freshdesk_list_agents '{"page":1,"per_page":1}' --json copy kosmo integrations:freshdesk freshdesk_list_agents '{"page":1,"per_page":1}' --json copy
freshdesk.freshdesk_get_agent Read read Get details of a specific helpdesk agent including name, email, role, availability, and group assignments.
agent_id kosmo integrations:call freshdesk.freshdesk_get_agent '{"agent_id":1}' --json copy kosmo integrations:freshdesk freshdesk_get_agent '{"agent_id":1}' --json copy
freshdesk.freshdesk_list_conversations Read read List all conversations on a ticket — includes public replies and private notes. Shows who posted, the body, and timestamps.
ticket_id kosmo integrations:call freshdesk.freshdesk_list_conversations '{"ticket_id":1}' --json copy kosmo integrations:freshdesk freshdesk_list_conversations '{"ticket_id":1}' --json copy
freshdesk.freshdesk_create_reply Write write Post a public reply to a support ticket. The reply is visible to the requester. Use this to respond to customers.
ticket_id, body, cc_emails, bcc_emails kosmo integrations:call freshdesk.freshdesk_create_reply '{"ticket_id":1,"body":"example_body","cc_emails":"example_cc_emails","bcc_emails":"example_bcc_emails"}' --json copy kosmo integrations:freshdesk freshdesk_create_reply '{"ticket_id":1,"body":"example_body","cc_emails":"example_cc_emails","bcc_emails":"example_bcc_emails"}' --json copy
freshdesk.freshdesk_create_note Write write Add a private note to a support ticket. Notes are only visible to agents, not to the customer. Use for internal communication.
ticket_id, body kosmo integrations:call freshdesk.freshdesk_create_note '{"ticket_id":1,"body":"example_body"}' --json copy kosmo integrations:freshdesk freshdesk_create_note '{"ticket_id":1,"body":"example_body"}' --json copy
freshdesk.freshdesk_list_companies Read read List customer companies from Freshdesk. Supports pagination. Returns company names, domains, and associated contacts.
page, per_page kosmo integrations:call freshdesk.freshdesk_list_companies '{"page":1,"per_page":1}' --json copy kosmo integrations:freshdesk freshdesk_list_companies '{"page":1,"per_page":1}' --json copy
freshdesk.freshdesk_get_current_user Read read Get the currently authenticated Freshdesk agent. Returns agent name, email, role, and availability. Use this to verify API credentials are working.
none kosmo integrations:call freshdesk.freshdesk_get_current_user '{}' --json copy kosmo integrations:freshdesk freshdesk_get_current_user '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_list_tickets --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_get_ticket --json
Operation Write write
Schema command kosmo integrations:schema freshdesk.freshdesk_create_ticket --json
Operation Write write
Schema command kosmo integrations:schema freshdesk.freshdesk_update_ticket --json
Operation Write write
Schema command kosmo integrations:schema freshdesk.freshdesk_delete_ticket --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_list_contacts --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_get_contact --json
Operation Write write
Schema command kosmo integrations:schema freshdesk.freshdesk_create_contact --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_list_agents --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_get_agent --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_list_conversations --json
Operation Write write
Schema command kosmo integrations:schema freshdesk.freshdesk_create_reply --json
Operation Write write
Schema command kosmo integrations:schema freshdesk.freshdesk_create_note --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_list_companies --json
Operation Read read
Schema command kosmo integrations:schema freshdesk.freshdesk_get_current_user --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.