When any project status is updated -> Send data on a Webhook. How to build this via API?

Hi Team,

I want to build an automation such that when any project status is updated → Send the data on a webhook URL.

Currently i can create a webhook on Asana per project only. Is there a way where i can know when any project is udpdated → send data on a webhook.

Hi @Jay54!

Yes, you can create a webhook at the project level for a specific project, or at the workspace level to get notified when any project is updated. The payload for creating the webhook would look something like this:

{
  "data": {
    "resource": "{project_or_workspace_gid}",
    "target": "{your-webhook-url}",
    "filters": [
      {
        "resource_type": "project",
        "action": "changed"
      }
    ]
  }
}

When your service receives a webhook event for a project change, it won’t include an indication that the change was due to a project status update. However, you can then use the status API to retrieve the list of status updates for the project, possibly using the created_since filter, to see if there was a new status added.

Hope this helps!

2 Likes

Can you give more information about this, because im doing the same thing but tracking multiple users (using their acccess token) tasks status etc…

Which part do you need guidance with? The webhook data received when a project status is updated, or the API to retrieve status updates for a given project?

Hey @David_Neal ,

I am facing issue with adding Webhook URL from Zapier.

I tried to create a Webhook URL but did not receive any x-hook-secret and because of this I am not able to create a Webhook

I can see to create a successful Webhook, i have to return the secret code.

How to even make the webhook send me the data of each user?

There is an official Asana → Zapier integration to handle Asana webhooks. I recommend you use this solution. Otherwise, there may not be a way to complete the X-Hook-Secret “handshake” required to register a webhook described in the webhook guide.

@ David_Neal