Creating Attachment webhook error

Attempting to create a webhook for created attachments:

<{data={resource=workSpaceGUID, target=website/projectWebhook, filters=[{resource_type=attachment, action=added}]}},[Authorization:“Bearer token”, Accept:“application/json”, Content-Type:“application/json”]>

I get this as a response:

403 Forbidden on POST request for “https://app.asana.com/api/1.0/webhooks”: "{“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"}]}"\]

Documentation isn’t very helpful to know how to proceed…

Hi @Bruce_Blanchard,

Yeah, I agree it’s not very clear from the API docs. You cannot create an attachment-based webhook at the workspace level; it has to be done on a specific project.

(Also FYI I moved your post to the English Forum > Developers & API forum section.)