Recent searches


No recent searches

Get Webhook for all customers who installed app.



Posted Nov 13, 2023

Hi,

If I publish an app on the Zendesk marketplace, is there a way to listen to events for the customers' accounts who have installed the application via following OAuth flow?

I know we can set webhooks from the Admin panel but I don't want the users to do who install our application, instead automatically when the application is installed.

I talked to the support and they said to post a question here.


0

4

4 comments

image avatar

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


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


image avatar

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


Thanks Zach Anthony,

I'll explore these.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post