Skip to main content

Connecting to Freshdesk

Your users will need the following information to connect their Freshdesk account with your integration built with Paragon Connect:
  • Freshdesk Domain
  • API Key
Once your users have connected their Freshdesk account, you can use the Paragon SDK to access the Freshdesk API on behalf of connected users. See the Freshdesk REST API documentation for their full API reference. Any Freshdesk API endpoints can be accessed with the Paragon SDK as shown in this example.
// You can find your project ID in the Overview tab of any Integration

// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);
            
// Get all tickets
paragon.request("freshdesk", "/tickets", {
  method: "GET"
});

// Create a ticket
paragon.request("freshdesk", "/tickets", {
  method: "POST",
  body: { 
     description: "Details about the issue...",
     subject: "Support Needed...",
     email: "[email protected]",
     priority: 1,
     status: 2,
     cc_emails: ["[email protected]","[email protected]"]
    }
});

// Get all contacts
paragon.request("freshdesk", "/contacts", {
  method: "GET"
});
  

Building Freshdesk workflows

Once your Freshdesk account is connected, you can add steps to perform the following actions:
  • Create Ticket
  • Update Ticket
  • Get Ticket by ID
  • Delete Ticket
You can also use the Freshdesk Request step to access any of Freshdesk’s API endpoints without the authentication piece. When creating or updating records in Freshdesk, you can reference data from previous steps by typing {{ to invoke the variable menu.