How Can I Retrieve and Delete Webhook Triggers in My Code?

This topic was automatically generated from Slack. You can find the original thread here.

Hey! I could really use some help! I keep receiving calls to my webhook and I can’t delete the triggers.
I called getTriggers, but it did not return the scheduled triggers. While developing, I created several triggers that I would now like to remove, but I don’t know how. Please help!

I want to have a list of all scheduled triggers so I can remove. I can remove by triggerId, but where can I get the list of triggers so I know the IDs?
_const_ triggers: GetTriggersResponse = await pd.getTriggers({
externalUserId: userId,
}); (edited)

Can you share your workspace ID and project ID with me?

Project: proj_9lsJO6K
Workspace: acris

FYI the timer trigger IDs are here, you should be able to delete them by ID:

ti_vET2WXY
ti_9LTMwjJ
ti_6eTl2LK
ti_NQTV0vZ
ti_QATnXke
ti_QATnXed
ti_qGTRd1Z

and the Gmail triggers are here:

dc_6RuEBLa
dc_qQujDAX
dc_QyupbG1
dc_nvulEJj

Thanks for sending! Will I be able to get them via getTriggers API?

I’m not positive. If we aren’t returning them there, that seems like a bug. Can you try both listing them and also retrieving one of them individually? Let me know if that works.

I tried listing them, but it seems there is a bug as getTriggers returns non-scheduled triggers just fine (Gmail, Slack etc). The API doesn’t return scheduled triggers only