Connecting Klipfolio to Desk.com

You can set up a connection between Klipfolio® and your Desk.com data to display your help desk metrics on a dashboard.

This article includes:

What options do I have for visualizing my Desk.com data?

Create data visualizations based on pre-built options or build your own. The choice is yours!

Pre-built by Klipfolio

Take advantage of our pre-built data sources to gather the data most meaningful to you.

  • Desk.com pre-built data sources: Data sources provide the foundation for Klip® building, so we suggest you create a data source as a first step (before building Klips and adding them to your dashboard). Our pre-built data sources focus on the most sought-after Desk.com data and are found on the Service Connectors page, available from this link or from your list of data sources. When you select a service connector from this page, the data source for that service is automatically added.

Custom-built by you

Taking the time to learn how to create your own data sources and Klips unlocks your data and enables you to control, manipulate, and transform it, leading you to unprecedented insights into your business.

  • Custom data sources: When you create a custom data source, you can either use the pre-built data source as a starting point from which to write your own query or you can write your own queries from the ground up and build a data source from scratch. You create custom-built data sources in the Service Connectors page, accessible from this link or from your list of data sources.
  • Custom Klips: Using our Klip Editor, you can construct and manipulate your data, including integrating multiple data sources, to produce unique, custom-built data visualizations. You create custom Klips from either your list of Klips or your Dashboard.

Regardless of whether you choose pre-built, custom-built, or a combination of both, before you can start building Klips and dashboards you need to connect to Desk.com data in Klipfolio.

How do I connect to Desk.com data in Klipfolio?

To connect your Desk.com data to Klipfolio, you will need your Desk.com username and password as well as your site name.

To get the right data from Desk.com, you use your Desk.com site name in the queries provided by Klipfolio or in your own query when building data sources.

How do I find my Desk.com site name?

To find your Desk.com site name:

  1. Log into your Desk.com account.
  2. Your site name can be found in the URL at the top of the page in this location: https://<yoursite>.desk.com/agent.
  3. Use your site name in your Desk.com query in Klipfolio.

How do I add a Desk.com pre-built or custom-built data source?

To add a Desk.com pre-built or custom-built data source:

  1. Navigate to the Service Connectors page in Klipfolio and choose Desk.com from the list.
  2. Select a pre-built data source from the left section of the Choose a pre-built or custom connection page. Alternatively, if you want to create a custom-built data source, click Create a custom Desk.com data source.
  3. Enter your Desk.com username and password and click Continue.
  4. Adjust the Query URL information, as noted on the Configure your data source page, to replace any generic placeholder data with your own.
  5. If you are creating a custom-built data source, edit the Query URL further to return the data you need. Refer to the Desk.com API documentation for details.
  6. Click Get data.
  7. Ensure this is the data you’re looking for. If you’re using Klips, optionally select the checkbox to Model your data. If you’re using PowerMetrics, which requires modelled data sources, you’ll automatically enter the modeller after clicking Continue. Learn more about modelling data sources.
  8. Click Continue.
  9. Name, choose refresh settings, and, optionally, share your data source.
  10. Click Save.

How do I create a Desk.com custom Klip?

You create custom Klips from either your list of Klips or your Dashboard. You choose a data visualization format, for example, a pie chart, gauge, or table, and decide whether you want to use an existing data source or create a new one. In the Klip Editor, there are limitless opportunities to modify, relate, and display your data. See the following related articles for more information and get building!

More about Desk.com's API and queries

Klipfolio connects to hundreds of services in the cloud that have a REST API. If you take the time to learn your service’s API to create queries for the data you want, your possibilities are endless. Here’s a quick overview video on APIs and Klipfolio:

  Klipfolio API's 101

If you need assistance using APIs, enlist a data analyst or developer.

Refer to the Desk.com API documentation to discover more data requests.

See the reference table below for API related information and sample queries.

API Documentation Desk.com API documentation

Authentication Method

Basic HTTP Authentication
Response Format JSON

Date Format

If you selected Create a Custom Desk.com Data Source and not a pre-built query from the list, you will need to set up a POST request to get data with a date range.
To get started:

  1. At Query URL enter the base URL of your Desk.com query.
  2. At Method, select POST.
  3. At Body, enter your Body parameter using fields and dimensions that correspond to your base URL.

Here is a body parameter that you can use to get you started. Refer to Desk.com API documentation to learn more.

Example POST request body parameter with date format:

{
"fields": ["field1", "field2"],
"dimension1": "dimension1",
"time": {
"min": "{date.add(-30).format('yyyy-MM-dd')}",
"max": "{date.today.format('yyyy-MM-dd')}",
"window_size": "none"
}
}

To see how the query parameters is configured in Klipfolio, see this screenshot.

Sample Queries

For a list of pending cases:

Endpoint URL:
https://<yoursite>.desk.com/api/v2/cases/search?status=pending&page=1&per_page=100

For a list of new high priority cases:

Endpoint URL:
https://<yoursite>.desk.com/api/v2/cases/search?priority=9,10&status=new&page=1&per_page=100

Related articles

Have more questions? Submit a request