Getting invalid_filters_for_larger_scoped_webhooks

I want to receive a webhook call whenever any tasks get updated or created. The docs say that such events will “propagate up”, but I don’t know which sort of resource I need to register my webhook on. I’m trying on the workspace, but I’m getting:

{
  errors: [
    {
      user_message:
        'Webhooks for larger scoped resources must have at least one filter and all filters must be in our whitelist.',
      error: 'invalid_filters_for_larger_scoped_webhooks',
      help: 'For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors',
      message:
        'Webhooks for larger scoped resources must have at least one filter and all filters must be in our whitelist.',
    },
  ],
}

My request body:

{
  resource: '1234567890123456', // my workspace gid
  target: 'https://mywebsite.com/webhook.php',
  filters: [
    { resource_type: 'task', action: 'added' },
    {
      resource_type: 'task',
      action: 'changed',
      fields: [
        'gid',
        'created_at',
        'due_at',
        'liked',
        'name',
        'num_likes',
        'permalink_url',
        'resource_type',
        'workspace',
      ],
    },
    { resource_type: 'task', action: 'deleted' },
    { resource_type: 'task', action: 'removed' },
    { resource_type: 'task', action: 'undeleted' },
  ],
}

What am I doing wrong?

Thanks,
Erik

Hi @Erik_Rasmussen and welcome to the forum!

The only level at which you can receive task events is at the project level. You’ll need to set a webhook for any project individually for which you want to get task events for that project.