Get Webhook for all customers who installed app.

4 댓글

  • Zach Anthony
    Zendesk Product Manager

    Hi Ali,

    You can use apps requirements to declare webhooks as requirements. With apps requirements, when an admin installs the app, Zendesk will create the app's required resources in the admin's account automatically.

    You can take a look at this guide in our developer docs for more information on how to do this for webhooks.

    Hope this helps!

    1
  • Ali Zaidi

    Thanks Zach Anthony,

    This seems like it will work, I have a question though, I believe correct me if I am wrong, below is the part that I would need if I only need to listen to the webhooks

     "webhooks": {
        "an_example_webhook": {
          "authentication": {
            "add_position": "header",
            "data": {
              "password": "hello_123",
              "username": "john_smith"
            },
            "type": "basic_auth"
          },
          "endpoint": "https://example.com/status/200",
          "http_method": "GET",
          "name": "An example webhook",
          "request_format": "json",
          "status": "active",
          "subscriptions": ["conditional_ticket_events"],
          "signing_secret": {
            "algorithm": "SHA256",
            "secret": "abcdefghijklmnopqrstuvwxyz"
          }
        }

     

    For the subscriptions part, I need to listen to all ticket changes or ticket status changes can you please guide me to the available events.

    0
  • Zach Anthony
    Zendesk Product Manager

    Hi Ali,

    You are correct regarding the part required to listen to webhooks. You can find the full list of available event types here. Ticket events are currently only available via a linked trigger, so for your use case you will need to subscribe to `conditional_ticket_events`. You will then need to set up a trigger that references the webhook (which can also be done via apps requirements). You can refer to our Creating and monitoring webhooks guide for more general information about how webhooks can be used with Support triggers and this section around creating dependent apps requirements.

     

     

    0
  • Ali Zaidi

    Thanks Zach Anthony,

    I'll explore these.

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공