Creating HTTP targets

Return to top
Have more questions? Submit a request

70 Comments

  • Marcos Sasson

    If a webhook failed, will I receive a notification?

    Can I manually retry it?

    0
  • Dan Ross
    Community Moderator

    Marcos Sasson

    At this time, Zendesk only sends emails to admins if a target is disabled from too many consecutive errors. After 21 failed attempts, Zendesk will auto-disable the target. Unfortunately, it doesn't send notifications for single failures at this time, but I think that'd be a great feature request. Please post it in the product feedback section of the forums, I know I would definitely upvote it!

     

     

    0
  • Nicole Saunders
    Zendesk Community Team

    Thanks for creating that feedback post, and for coming back to share the link to it, Marcos! If others are interested in Marcos' suggestion, please go up vote his post and add any details you can to the request in the comments.

    0
  • Dan Cooper
    Community Moderator

    I noticed there is an API for Target Failures that might be worth checking out.  It's listed as a development API at the moment, but if you were to poll that API, you might be able to get some more granular control in place to to monitor your targets (and potentially re-enable them using the Targets API).

    0
  • Bala Gopalan

    https://support.zendesk.com/hc/en-us/articles/204890268/comments/360002774753

    What does "short": true do in this example?

    I could not find docs for it. Assumed it would show a truncated version where value is big.  But does not appear to be the case in my test drive so far.

    0
  • Dan Ross
    Community Moderator

    Hey Bala Gopalan

    Docs for Slack attachments are found here: https://api.slack.com/reference/messaging/attachments

    In this case, the short attribute is documented at the very end of the article. 

    Indicates whether the field object is short enough to be displayed side-by-side
    with other field objects. Defaults to false.

    Setting it to false (or not setting it all) will mean that attribute will have a whole line to itself in the message that gets sent to Slack. I chose to set it to true when the attributes I'm using are only one or two words, like our Ticket Forms and Groups are. 

    Hope that helps clarify things

    0
  • Nahuel Sznajderhaus

    hi there, how can I know that the request to my application came from Zendesk? I don't see in the headers any signature when I use a POST in a URL Target.

    I'd like to add a layer of security, what's the recommended approach?

    0
  • Jean-Charles Pascale
    Zendesk Customer Advocate

    Hi Nahuel,

    Indeed, there is no Origin header for calls sent from a target.
    However, you can try to use the header "User-Agent" which should have the value "Zendesk Target" for any call coming from a Zendesk Target.

    Hope that can help your workflow.

    0
  • Kok Jeff Tan

    To help the next guy who gets the error which started appearing 2 days ago when adding an HTTP Target:

    Invalid target configuration:
    URL: is invalid

    The root of your full domain (including with subdomains, if any) must respond with a valid http response. I only had the subdirectory as a valid endpoint so Zendesk kept giving the error.

    As I'm testing with subfolders, I created a CDN url (Cloudfront) to point directly to the subdirectory to fix the issue.

     

    1

Please sign in to leave a comment.

Powered by Zendesk