# Issue with webhook event.

**URL:** <https://forum.asana.com/t/issue-with-webhook-event/403942>\
**Category:** API & Developers\
**Created:** [19 April 2023 16:48 UTC](https://forum.asana.com/t/issue-with-webhook-event/403942 "2023-04-19T16:48:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Gonzalez1](https://luna1.co/8d76cd.png) [@John\_Gonzalez1](https://forum.asana.com/u/John_Gonzalez1)\
**Post date:** [19 April 2023 16:48 UTC](https://forum.asana.com/t/issue-with-webhook-event/403942/1 "2023-04-19T16:48:22Z")

</div>

Hello! So I’m writing a server that will receive webhooks of a tasks info when created in an asana project. The Issue is I established a webhook with my server, I used this in Postman:  
{  
“data”: {  
“filters”: [  
{  
“action”: “added”,  
“resource\_type”: “project”  
}  
],  
“resource”: “MyId”,  
“target”: “MyEndpoint”  
}  
}  
I successfully esatblished the link but when I add a task to the project I dont recieve a webhook. Am I using the wrong event for what I want to do? Or is it an issue in the setup?

---

<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:** [19 April 2023 17:50 UTC](https://forum.asana.com/t/issue-with-webhook-event/403942/2 "2023-04-19T17:50:34Z")

</div>

Hi @John_Gonzalez1,

Issuing that call is just the first part of creating a webhook. After that, Asana will reply and you need to respond that reply to [complete the handshake](https://developers.asana.com/docs/webhooks-guide#the-webhook-handshake). Subsequent to that, your server also needs to respond [whenever it receives a heartbeat event](https://developers.asana.com/docs/webhooks-guide#heartbeat-events) in order to remain active.

---

<div class="post-metadata">

**Author:** ![John\_Vu](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/john_vu/32/97235_2.png) [@John\_Vu](https://forum.asana.com/u/John_Vu)\
**Post date:** [19 April 2023 18:39 UTC](https://forum.asana.com/t/issue-with-webhook-event/403942/3 "2023-04-19T18:39:52Z")

</div>

Hi @John_Gonzalez1

It is not really clear to me what resource _“MyId”_ is associated to in your example. But from the looks of your filter it looks like you are asking for webhook events for a project being added not a task. Hence why you did not receive any events for _"when I add a task to the project I dont recieve a webhook_"

If you would like to receive webhook events when a task is added to a particular project (\<YOUR\_PROJECT\_GID\>) try the following request body when you [Establish a webhook](https://developers.asana.com/reference/createwebhook)

```auto
{
    "data": {
        "filters": [
            {
                "action": "added",
                "resource_type": "task"
            }
        ],
        "resource": "<YOUR_PROJECT_GID>",
        "target": "<YOUR_WEBHOOK_TARGET_URL>"
    }
}

```

With the above request body → You will receive all task added event types in the specified project. So in this case some events include:

- a task added to a project
- a task addd to a section in the project

So most likely if you add a task to a project with the above filters you will receive two task added events. 1 for adding the task to the project you can see this in the `parent` value of the event response and 2 for adding the task to a section in the project. Again, you can distinguish this by looking at the `parent` value in the response.

Also, keep in mind the [webhook heart beat events](https://developers.asana.com/docs/webhooks-guide#heartbeat-events) and [webhook handshake](https://developers.asana.com/docs/webhooks-guide#the-webhook-handshake) that @Phil_Seeman mentioned when implementing our webhooks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:02 UTC](https://forum.asana.com/t/issue-with-webhook-event/403942/4 "2025-05-30T19:02:23Z")

</div>

Closed on 30 May 2025 19:02 UTC


