I have a document (aaaa1111) where there is a webhook automation. I have created the token from here:
I was triggering that automation and all worked fine.
The issue is when I copied that doc and a new one got created (bbbb2222). I went for the same automation triggered via webhook (but now in the new doc), and again repeated the process of creating the API token. Every time I create a token from the automation, I can see that a new API token gets added in my account, pointing to the correct doc (from the doc I clicked the button in the previous screenshot)
The issue is that now I trigger the webhook with:
- automationId (is the same in both cases, it doesn’t change from one doc to the new copy)
- docId: aaaa11111
- API Token: token created for doc bbbb2222 (and expected to work only for this doc)
Result: The automation for the doc aaaa11111 gets triggered (even if the token should not be valid for aaaa11111 doc but only for bbbb2222)