I am integrating the Asana with the Open AI API for which I am trying to establish the webhook in the asana using the asana API.
But I am getting the 403 error.
Please find the API details :
Method : POST URL : https://app.asana.com/api/1.0/webhooks Body :
{
"data": {
"target": "{url}/recievewebhook",
"resource": "{Workspace_ID}",
"filters": [
{
"action": "added",
"resource_type": "task",
"resource_subtype": "default_task"
},
{
"action": "changed",
"resource_type": "task",
"resource_subtype": "default_task"
}
]
}
}
and the error I am getting is :
{
"errors": [
{
"error": "invalid_filters_for_larger_scoped_webhooks",
"message": "Webhooks for larger scoped resources must have at least one filter and all filters must be in our whitelist.",
"user_message": "Webhooks for larger scoped resources must have at least one filter and all filters must be in our whitelist.",
"help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"
}
]
}
Thankyou so much in advance.
I am expecting the 200ok response from the API. So that if I create any task on my workspace I should get the notification about the event with its details.