# Can't get webhook id

**URL:** <https://forum.asana.com/t/cant-get-webhook-id/35928>\
**Category:** API & Developers\
**Created:** [21 November 2018 11:31 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928 "2018-11-21T11:31:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BorschEugene](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/borscheugene/32/25417_2.png) [@BorschEugene](https://forum.asana.com/u/BorschEugene)\
**Post date:** [21 November 2018 11:31 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/1 "2018-11-21T11:31:56Z")

</div>

Hi everyone! Sorry for my English 🙂  
I created webhook in test workspace between asana and my server. It is worked fine but now I work from another PC and I can`t get any webhooks on my server, on console from new PC.  
browser  
 ![%D0%92%D1%8B%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_001](https://us1.discourse-cdn.com/asana/original/3X/9/0/90ece7576ccc43e589f4bc9321e385738bcf2f18.png)  
Just empty array. Webhook working and I see information from asana. Another queries like ‘get user’ work fine. Can you help me, please?

---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [21 November 2018 12:13 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/2 "2018-11-21T12:13:16Z")

</div>

Can you share the code you are using?

---

<div class="post-metadata">

**Author:** ![BorschEugene](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/borscheugene/32/25417_2.png) [@BorschEugene](https://forum.asana.com/u/BorschEugene)\
**Post date:** [21 November 2018 12:34 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/3 "2018-11-21T12:34:37Z")

</div>

In application I use package for laravel ([GitHub - Torann/laravel-asana: Asana API wrapper for Laravel](https://github.com/Torann/laravel-asana)).  
But I tried use console

 ![%D0%92%D1%8B%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_002](https://us1.discourse-cdn.com/asana/original/3X/8/9/89ce3d53f917273376f73cb9c4632fbfd7dbace0.png)  
and result the same

---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [21 November 2018 12:58 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/4 "2018-11-21T12:58:37Z")

</div>

So depending on the computer you run the code on, the result is different? Are you logged with the same account everytime?

---

<div class="post-metadata">

**Author:** ![Damian\_Kobza](https://luna1.co/8d76cd.png) [@Damian\_Kobza](https://forum.asana.com/u/Damian_Kobza)\
**Post date:** [22 November 2018 11:02 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/5 "2018-11-22T11:02:44Z")

</div>

I can confirm that getting the webhooks for the whole workspace is no longer working since it always returns an empty array.  
The only way it’s getting the webhooks is if we specify the resource\_id in the params with the workspace.  
Does someone know it this was an intentional change? Because from the documentation it should still be possible to get all the webhooks related to a workspace.

---

<div class="post-metadata">

**Author:** ![Damian\_Kobza](https://luna1.co/8d76cd.png) [@Damian\_Kobza](https://forum.asana.com/u/Damian_Kobza)\
**Post date:** [22 November 2018 11:07 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/6 "2018-11-22T11:07:57Z")

</div>

Actually, it seems that it happens only for some workspaces, and not for all of them.

---

<div class="post-metadata">

**Author:** ![BorschEugene](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/borscheugene/32/25417_2.png) [@BorschEugene](https://forum.asana.com/u/BorschEugene)\
**Post date:** [22 November 2018 11:22 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/7 "2018-11-22T11:22:51Z")

</div>

"So depending on the computer you run the code on, the result is different? " -Unfortunately, I think yes. But I can check it only tomorrow.  
“Are you logged with the same account everytime?” - yes, I have just one account in asana, but maybe it can depends from ‘PERSONAL ACCESS TOKENS’. I have two tokens.

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [22 November 2018 16:10 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/8 "2018-11-22T16:10:17Z")

</div>

> [@Damian\_Kobza](#):
>
> I can confirm that getting the webhooks for the whole workspace is no longer working since it always returns an empty array.

FYI I did some testing and am seeing this same issue.

@Joe_Trollo @Matt_Bramlage@Jeff_Schneider Guys, any info on this issue?

---

<div class="post-metadata">

**Author:** ![BorschEugene](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/borscheugene/32/25417_2.png) [@BorschEugene](https://forum.asana.com/u/BorschEugene)\
**Post date:** [23 November 2018 08:11 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/9 "2018-11-23T08:11:03Z")

</div>

I checked my hunch and I was right - if you have two tokens (first and second), and you created one webhook (using the first token), then you cannot see it using the second token

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [23 November 2018 12:31 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/10 "2018-11-23T12:31:34Z")

</div>

I still think there’s something else going on, though - I’m using OAuth and even though I’m using a token generated from the client credentials that created the webhooks, I’m getting an empty array back when trying to list the webhooks in a workspace.

---

<div class="post-metadata">

**Author:** ![carolina](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/carolina/32/20902_2.png) [@carolina](https://forum.asana.com/u/carolina)\
**Post date:** [27 November 2018 22:23 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/11 "2018-11-27T22:23:36Z")

</div>

Hello,

Is it normal than having multiple webhooks already created in my app I get:  
[https://app.asana.com/api/1.0/webhooks?workspace=id\_of\_my\_workspace](https://app.asana.com/api/1.0/webhooks?workspace=id_of_my_workspace)

{  
“data”:   
}

The same thing happends with the client library for python:  
webhooks = list(self.client.webhooks.get\_all(data))

returns an empty list.

are they lost, or am I doing something wrong?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [27 November 2018 23:10 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/12 "2018-11-27T23:10:50Z")

</div>

It seems to be a current issue; see this thread:

> [@Can't get webhook id](https://forum.asana.com/t/cant-get-webhook-id/35928):
>
> Hi everyone! Sorry for my English slight_smile I created webhook in test workspace between asana and my server. It is worked fine but now I work from another PC and I can`t get any webhooks on my server, on console from new PC. browser [%D0%92%D1%8B%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5\_001] Just empty array. Webhook working and I see information from asana. Another queries like ‘get user’ work fine. Can you help me, please?

I’m hoping to hear some input from the Asana API team (@Joe_Trollo @Matt_Bramlage @Jeff_Schneider).

---

<div class="post-metadata">

**Author:** ![Marie](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/marie/32/42208_2.png) [@Marie](https://forum.asana.com/u/Marie)\
**Post date:** [28 November 2018 11:11 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/13 "2018-11-28T11:11:10Z")

</div>

Thanks @Phil_Seeman! Am I good merging this thread with [Can't get webhook id](https://forum.asana.com/t/cant-get-webhook-id/35928) so?

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [28 November 2018 13:22 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/14 "2018-11-28T13:22:33Z")

</div>

Yep, I would merge them.

---

<div class="post-metadata">

**Author:** ![Marie](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/marie/32/42208_2.png) [@Marie](https://forum.asana.com/u/Marie)\
**Post date:** [28 November 2018 13:37 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/15 "2018-11-28T13:37:08Z")

</div>

All done! As always, thanks for your help @Phil_Seeman

---

<div class="post-metadata">

**Author:** ![Joe\_Trollo](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/joe_trollo/32/4025_2.png) [@Joe\_Trollo](https://forum.asana.com/u/Joe_Trollo)\
**Post date:** [28 November 2018 18:47 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/16 "2018-11-28T18:47:28Z")

</div>

Hi @Damian_Kobza and @Phil_Seeman: so far we have been unable to replicate this issue internally. I have been able to create a webhook via `POST /webhooks` and then view that webhook in `GET /webhooks?workspace=<workspace>`. Can you provide more information about how you encounter this issue?

@BorschEugene, that is correct: webhooks are only visible to the user and app/PAT that created them (different PATs can’t see each other’s webhooks).

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [28 November 2018 21:22 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/17 "2018-11-28T21:22:13Z")

</div>

@Joe_Trollo Well, it seems that in my case, in the instance where I was getting an empty array of webhooks for a workspace, there really were no webhooks for that workspace for that app key.

While that explains the empty array, it’s a bit disconcerting as those were valid active webhooks and I have a server routine that should have been responding to them. But it seems sometime in the past month or so (I haven’t been monitoring this endpoint), the webhooks disappeared.

I wonder if it could be related to the network error issue?

In any case, I have a new set of webhooks created with a different app id which does get properly returned. I’ll be monitoring those actively and we’ll see if they also disappear at some point.

---

<div class="post-metadata">

**Author:** ![Patrick\_Lorenz](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/patrick_lorenz/32/11530_2.png) [@Patrick\_Lorenz](https://forum.asana.com/u/Patrick_Lorenz)\
**Post date:** [29 November 2018 06:58 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/18 "2018-11-29T06:58:43Z")

</div>

We see the same here. The API does return an empty array. If we however recreate the very same web hook we receive an error message as it already exists. It’s the same API key used. The unchanged code worked fine some time ago.

---

<div class="post-metadata">

**Author:** ![Damian\_Kobza](https://luna1.co/8d76cd.png) [@Damian\_Kobza](https://forum.asana.com/u/Damian_Kobza)\
**Post date:** [29 November 2018 15:57 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/19 "2018-11-29T15:57:12Z")

</div>

In my case, I was testing the webhooks for some of our users that had problems syncing Asana projects with our service. During the tests i stumbled on this problem for some of them, but not all of them. I do not know why but it seems that for some Asana accounts the `GET /webhooks?workspace=<workspace>` endpoint returns an empty array but for other it returns correctly an array of all the webhooks in the account.

---

<div class="post-metadata">

**Author:** ![Zach3](https://luna1.co/8d76cd.png) [@Zach3](https://forum.asana.com/u/Zach3)\
**Post date:** [16 February 2019 02:06 UTC](https://forum.asana.com/t/cant-get-webhook-id/35928/20 "2019-02-16T02:06:30Z")

</div>

Hi Joe,

Is this issue still persisting? I am having the same problem. I created a webhook to a project then used : curl -H “Authorization: Bearer ”   
[https://app.asana.com/api/1.0/webhooks/?workspace=workspace](https://app.asana.com/api/1.0/webhooks/?workspace=workspace) to get the webhooks and it returns an empty array.

[Next page](https://forum.asana.com/t/cant-get-webhook-id/35928.md?page=2)
