Docs
WebsiteLoginFree Trial
  • Getting Started
    • OnCall Users
    • Team Admins
    • Account Admins
  • Architecture Guide
  • Common UI Design Patterns
  • Alerts
  • Teams
  • Schedules
  • Escalation Policies
  • Integrations
  • Broadcasts
  • Users
  • Notifications
  • Reports
  • Billing
  • Accounts
  • Stakeholders
  • Maintenance Windows
  • Routers
  • Notification Rules
  • Single Sign On (SSO)
  • Integration Guides
    • Introduction
    • 66uptime
    • Apex Ping
    • AppDynamics
    • Auvik
    • AWS CloudWatch
    • Azure Monitor
    • Cloudflare
    • Cronitor
    • Datadog
    • Dead Man's Snitch
    • Echoes HQ
    • ElastAlert
    • Email
    • Form
    • Freshdesk
    • Freshservice
    • Google Hangouts Chat
    • Grafana
    • Healthchecks.io
    • HetrixTools
    • Honeybadger
    • Hydrozen
    • Jira Server
    • JotForm
    • Kapacitor
    • LogicMonitor
    • Mattermost
      • Outgoing Webhook
      • Post to Channel
    • Meta Workplace
    • Microsoft Teams
    • New Relic
    • Outgoing Webhook
    • Pingdom
    • Prometheus
    • PRTG Network Monitor
    • Pulsetic
    • Sentry
    • ServerGuard24
    • Site24x7
    • Slack
      • Notifications
      • Outgoing Webhook
      • Post to Channel
    • SolarWinds
    • Stackdriver
    • StatusCake
    • Twilio
      • Incoming SMS
      • Live Call Routing
    • Typeform
    • Uptime
    • Uptime Kuma
    • UptimeRobot
    • Webhook
    • Zendesk
  • API
    • Introduction
    • Authentication
    • Errors
    • Pagination and Filters
    • Common Model Attributes
    • Account Users
    • Alerts
    • Broadcasts
    • Comments
    • Escalation Policies
    • Events
    • Integrations
    • Logs
    • Maintenance Windows
    • Notification Rules
    • Routers
    • Schedules
    • Teams
    • Users
  • Command Line Interface (CLI)
    • PagerTree CLI: Command Line Interface
Powered by GitBook
On this page
  • What is Zendesk?
  • How It Works
  • Integration Walkthrough
  • In PagerTree
  • In Zendesk
  • Additional Triggers

Was this helpful?

  1. Integration Guides

Zendesk

Connect your Zendesk tickets to PagerTree.

PreviousWebhookNextIntroduction

Last updated 1 year ago

Was this helpful?

Company
Estimated Time
Vendor Docs
Open Source

5 minutes

What is Zendesk?

is a cloud-based customer service software and support ticketing system.

How It Works

Zendesk creates tickets.

  • When a ticket is created (event_type == "create") in Zendesk, an alert is created in PagerTree automatically.

  • When a ticket is acknowledged (event_type == "acknowledge") in Zendesk, an alert is acknowledged in PagerTree automatically.

  • When a ticket is resolved (event_type == "resolve") in Zendesk, the alert is resolved in PagerTree automatically.

Integration Walkthrough

In this integration tutorial we will show you how to send tickets from Zendesk into PagerTree. The estimated time for this integration is 5 minutes. We assume that you already have a PagerTree and Zendesk account setup.

Cloning targets and/or triggers in Zendesk could lead to unexpected behavior. We recommend always creating new targets and triggers.

In PagerTree

  1. by clicking the Zendesk logo.

  2. .

In Zendesk

Create a Webhook

  1. In the Admin center, search "webhooks", and click the Webhooks link.

  2. Click the Create webhook button.

  3. Select Trigger or automation and click Next.

  4. Enter in the following details:

    1. Name - PagerTree

    2. Endpoint Url – Paste the PagerTree Endpoint URL you copied earlier

    3. Request method – Select POST

    4. Request format – Select JSON

    5. Authentication - None

    6. Click Create webhook button.

  5. Click the Admin Center link to connect the webhook to a trigger.

Connect the Webhook in a Trigger

  1. In the Business Rules -> Triggers page, click Add Trigger.

  2. In the New Trigger form

    1. Trigger name – Name the target appropriately (ex: “PagerTree Create”)

    2. Meets any of the following conditions: Ticket is created.

    3. Perform these actions

      1. Notify active webhook: PagerTree

      2. Paste the following in JSON body

zendesk_payload.create.json
{
  "event_type": "create",
  "id":"{{ticket.id}}",
  "title":"{{ticket.title}}",
  "created_at_with_timestamp":"{{ticket.created_at_with_timestamp}}",
  "description":"{{ticket.description}}",
  "ticket_type":"{{ticket.ticket_type}}",
  "link":"{{ticket.link}}",
  "priority":"{{ticket.priority}}",
  "status":"{{ticket.status}}",
  "via":"{{ticket.via}}",
  "assignee_name":"{{ticket.assignee.name}}"
}
  1. Click “Create” button.

You have successfully completed the Zendesk Integration.

Additional Triggers

Acknowledge

zendesk_payload.acknowledge.json
{
  "event_type": "acknowledge",
  "id":"{{ticket.id}}",
  "title":"{{ticket.title}}",
  "created_at_with_timestamp":"{{ticket.created_at_with_timestamp}}",
  "description":"{{ticket.description}}",
  "ticket_type":"{{ticket.ticket_type}}",
  "link":"{{ticket.link}}",
  "priority":"{{ticket.priority}}",
  "status":"{{ticket.status}}",
  "via":"{{ticket.via}}",
  "assignee_name":"{{ticket.assignee.name}}"
}

Resolve

zendesk_payload.resolve.json
{
  "event_type": "resolve",
  "id":"{{ticket.id}}",
  "title":"{{ticket.title}}",
  "created_at_with_timestamp":"{{ticket.created_at_with_timestamp}}",
  "description":"{{ticket.description}}",
  "ticket_type":"{{ticket.ticket_type}}",
  "link":"{{ticket.link}}",
  "priority":"{{ticket.priority}}",
  "status":"{{ticket.status}}",
  "via":"{{ticket.via}}",
  "assignee_name":"{{ticket.assignee.name}}"
}

Navigate to Menu -> Admin Gear -> Go to Admin Center.

Additional triggers can be added if you would like the ability to acknowledge and resolve PagerTree alerts from Zendesk. You'll need to follow the steps again to for your different conditions. Make sure to change the JSON payloads to the below.

create a trigger
Zendesk
view
v3.rb
Zendesk
Create the integration
Copy the Endpoint URL
In the Admin Center, click Webhooks.
Click the create webhook button.
Select Trigger or automation.
Zendesk PagerTree Webhook
Click the Add trigger button
Zendesk PagerTree Create Trigger
Admin Center webhooks
Zendesk Create Webhook
Zendesk trigger or automation
Zendesk PagerTree Webhook
Zendesk Add Trigger
Zendesk PagerTree Create Trigger