I am trying to use webhooks to set up notifications for my app. I then check to make sure the webhook’s type is story, if it is I do a client.stories.findById(resourceID) to get the full story. However, sometimes it seems like it cannot find the story using my resourceID. I noticed that it happens mostly with stories associated with tasks that I have deleted. Could it be because the task was deleted and therefore the story is no longer there?
Another follow up question: When subscribing to webhooks, is it ok to ignore type ‘task’ and type ‘project’ and only check webhooks with type ‘story’. It seems like the webhooks labeled ‘task’ are redundant since every change comes with a ‘story’ webhook anyways. Is this a correct assumption?
Any help is appreciated. Thanks!