Creating webhooks with the HTTP target

Have more questions? Submit a request

65 Comments

  • Nicole - Community Manager
    Comment actions Permalink

    Hi Nivi -

    There is not as triggers don't have a relationship with Guide actions; triggers only work from ticket properties in Support.

    0
  • Konstantin Petrov
    Comment actions Permalink

    Hello! Will this webhooks work with https or they are http only?

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hi Konstantin,

    Https targets should work as well when creating a webhook. If you run into any issues let us know!

    0
  • lamps
    Comment actions Permalink

    Hi,

      Can I, an end-user, create a  webhook to notify me when a new article is created in a certain section of the Help Centre please? Thanks.

    0
  • Devan
    Comment actions Permalink

    Hello Lamps,

    Setting up what you described is a possibility, and I've gone ahead and linked an article that goes in depth on how to begin tackling this request. Let us know if you need any further assistance.

    Creating Webhooks with the HTTP Target

    0
  • lamps
    Comment actions Permalink

    Thanks Devan, but I'm not sure I understand what you mean. The link you gave is exactly this article which I commented on. It introduces the webhook setup from the admin's point of view, but what I would like to do is to set up a webhook as an end or anonymous user, to notify me as soon as an article is created in a certain section of the knowledge base.

    0
  • Devan
    Comment actions Permalink

    Hello Lamps,

    Sorry about linking you back to this article that was a mislink on our end. So regarding what you are describing you actually should be able to follow the sections of your KB that you want to keep track of and it should alert you when a new article is created. 

    0
  • lamps
    Comment actions Permalink

    Thanks again Devan, I have followed the section, but the notifications do not seem to be instant - they tend to arrive a few minutes after the creation of the article. Is this normal?

    0
  • Paige Rideout
    Comment actions Permalink

    In my Slack channel, I can create a Zendesk ticket using the Slack shortcut ( /zendesk create_ticket) and it works as expected. Once I have created a ticket, I can see the ticket id, description, assignee, description in my channel.

    Once the ticket moves through the ticketing cycle (status changes to pending, solved, etc.) I am no longer able to see the status of my ticket in the channel. Is there a way for me to create a ticket in a Slack channel and see when that ticket's status has been changed?

    0
  • Devan
    Comment actions Permalink

    Hello Paige,

    So there are a few variables that might be causing this disconnect in Slack which could require a bit more troubleshooting than is efficient via the forums. I've gone ahead and created a ticket on your behalf so one of our talented Advocates can work through this with you.  

    0
  • Conza
    Comment actions Permalink

    Hi team,

    Have setup triggers for urgent escalations (e.g. order cancellation etc.) with the idea it sends to the team Slack channel (instead of sitting in unassigned tickets for awhile).

    Does anyone have any JSON examples of what they use? Template? 

    0
  • Dan Ross
    Comment actions Permalink

    Hey Conza,

    There's a great tutorial on setting this up here

    Once you setup the HTTP target to Slack, you could use something like this as the payload for the target in Zendesk. You could use this as an action for an automation for something like watching of critical tickets that remain unassigned for X time.

    {  
    "channel": "CHANNELNAME",
    "icon_emoji": ":YOUREMOJI:",
    "username": "BOTNAME",


    "attachments":
    [
    {
    "fallback":"You have a reply on ticket #{{ticket.id}}({{ticket.title}}!",
    "pretext": "You have a reply on ticket #{{ticket.id}}({{ticket.title}}!",
    "title": "Click To Open Ticket",
    "title_link": "{{ticket.link}}",
    "color": "green",

    "fields": [
    {
    "title": "Status",
    "value": "{{ticket.status}}",
    "short": true
    },
    {
    "title": "Ticket Subject",
    "value": "{{ticket.title}}",
    "short": true
    },
    {
    "title": "Assignee",
    "value": "{{ticket.assignee.name}}",
    "short": true
    },
    {
    "title": "Team",
    "value": "{{ticket.group.name}}",
    "short": true
    }


    ]
    }
    ]
    }

    Hope that helps!

    0
  • Ashwin
    Comment actions Permalink

    We are using Zendesk to post release notes for our application and would like to get notified in our application when new articles are published.

    I've read about the webhooks supported by Zendesk and they seem to relate to the ticketing system. Does this functionality extend to the article system as well?

    0
  • Dan Ross
    Comment actions Permalink

    Hi Ashwin,

    HTTP targets only apply to the ticketing side, not to the article management side. I'd suggest creating a post in the Product Feedback section for Guide. I'd definitely vote for this kind of feature.

     

    1
  • Ashwin
    Comment actions Permalink

    Hi Dan,

    It looks like similar requests have been made before and the product management team has not prioritized the work for a year+. So, I doubt another request is going to bump up the priority and I don't want to wait for months (or years) for this feature to be implemented.

    I've identified an alternative to this that I'll implement myself.

    ~Ashwin

    0
  • Jins Kaduthodil
    Comment actions Permalink

    I can not see the HTTP Trigger section on my account. 

    I am admin for incent.zendesk.com

    Do I need a specific subscription or something??

    0
  • Devan
    Comment actions Permalink

    Hello Jins Kaduthodil,

    You are correct that due to your account being "Essentials" you don't have access to this feature. You would need to upgrade the subscription on your account to resolve this on your end. I hope this clarifies this issue, and please let us know if we can help in any way.

    Best regards. 

    0
  • Guillem
    Comment actions Permalink

    Is there a way to use a Bearer token instead of Basic Auth on the HTTP Target?

    0
  • Bryan - Community Manager
    Comment actions Permalink

    Hi Guillem -- only Basic authorization is supported for HTTP targets. Having more flexibility around request headers has come up before, however.

    If you would like to add to that conversation, see this feature request post here: https://support.zendesk.com/hc/en-us/community/posts/115009370628-Passing-API-Header-in-HTTP-Target

    1
  • Nguyen Duc Quy
    Comment actions Permalink

    where am I wrong ? 

    0
  • Bryan - Community Manager
    Comment actions Permalink

    We're investigating this. Right now, it seems like any domain that begins with "x" is causing an error in the underlying jQuery call that this UI uses. We'll get back to you Nguyen Duc Quy when we find out more.

    0
  • Greg - Community Manager
    Comment actions Permalink

    HI Nguyen Duc Quy! The reason that this error is being returned is because we can't resolve the host that you're passing in here. Our backend validation requires that the URL that you're using is reachable and since hooks.xvolve.com/ does not resolve, that is why you're seeing this error.

    0
  • Schuyler Weinberg
    Comment actions Permalink

    Asana's integration is using Zapier (which is ok if that's what I have to do) but I was trying to find a way to use HTTPS targets to do this. Has anyone successfully done that? The article specifically mentions Asana but links to the asana homepage for me

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hey Schuyler,

    Any chance you could provide some additional information on what you're trying to set up on your end? What are you trying to accomplish with webhooks?

    Let me know!

    0
  • Bryan Delerson
    Comment actions Permalink

    I'd like to whitelist the specific IP ranges where these HTTP requests are coming from -  do I need to whitelist every single IP on this page?

    Or can you tell me which servers are responsible for the webhooks? So far all the requests I've seen in my testing are from 52.21.112.236

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hey Bryan,

    It's recommend that you whitelist the list provided on the page you linked. I did some digging on my end to see if I could track down specific ranges for webhooks but was unable to find this information for you.

    Let me know if you have any other questions!

    0
  • Bryan Delerson
    Comment actions Permalink

    I'm having an issue where some of my webhooks don't execute - the error under "Target Failures" reads "execution expired" and there are no additional details when I click into it.

    I don't see any access attempts in my server logs at all.

    0
  • Erika Camille Sundian
    Comment actions Permalink

    Hello Bryan Delerson,

    I understand that you wanted to know what the Failure Type execution expired means so I've checked this for you and found that most likely you have run into a condition called ticket collision or race condition. Essentially this means when your target was trying to update, the ticket was being updated at the same time by the system. 

    This is why we do not recommend this practice as noted here:
    Can I use a trigger and a target to update tickets?

    In most cases, it's probably going to work, but you may end up in this situation especially during a busy cycle.  If this is absolutely needed to update the ticket this way, then a potentially better way would be to call out to a custom web service with the ticket information, check the ticket status, and then update the ticket externally.  Additionally, this would provide potentially a higher level of security and flexibility in updating your tickets.

    I hope you find this helpful. :)

    0
  • Bryan Delerson
    Comment actions Permalink

    Thanks Erika, but I don't think that's what is happening here - because what you described is exactly what I'm doing. I'm not updating a ticket with a trigger, I'm notifying a target (my external web server) with ticket information. When the error occurs, I never receive the ticket information and there is no indication that an access attempt was made.

    Sorry if this forum is the wrong platform for this, let me know if I need to open a support ticket :)

    0
  • Erika Camille Sundian
    Comment actions Permalink

    Hi Bryan,

    Thanks for the additional information! You are right, I'd recommend raising a ticket with our Support folks to take a closer look into this on your behalf. :)

    0

Please sign in to leave a comment.

Powered by Zendesk