#cato_webhooks

1 messages ยท Page 1 of 1 (latest)

cerulean nightBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1449016970992156823

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

icy vortex
#

๐Ÿ‘‹ happy to help

#

would you mind elaborating your question please?

heavy ravine
#

I'm trying to find out how I can get notified on account deletions, and the AI is giving conflicting answers on whether this is possible or not.

icy vortex
#

are you a Connect platform?

heavy ravine
#

Yes

heavy ravine
#

But is the .deauthorized the same thing as deleted?

#

"account.application.deauthorized: Occurs when a connected account disconnects from your platform (for accounts with Dashboard access)"

icy vortex
#

first, do you have Standard or Express/Custom accounts?

#

this is important

#

in that case, you will receive account.updated event

heavy ravine
#

Good question, I'm a new developer on the team and am setting up the event consumption via event bridge currently. How do I know what type we're using?

icy vortex
#

what's your platform account ID?

heavy ravine
#

acct_19BLU8Djx6zFnDgm

icy vortex
#

ok so you have Custom Accounts

heavy ravine
#

gotcha

icy vortex
#

in that case as I said you listen to account.updated events

#

and you will see the deleted property set to true

#

but I'm asking why would you need a webhook endpoint for this?

heavy ravine
#

That's the thing though, in our test environment we've had quite a few deleted accounts the last 24 hours, but we've received no events with the flag set to true

icy vortex
#

the only way to delete a Custom Account is via an API call from your server

heavy ravine
#

because we're migrating from one system to another

#

and need to first make sure we're in sync with the data

#

so the /delete request is happening in the other system

#

I am thinking we might just call the new system's /delete endpoint when the old system has performed the deletion

#

although I was hoping I could consume the deleted event in the new system

#

But as I said, I cannot see that the deleted flag is ever true on the account.updated events

icy vortex
#

you should listen to
account.application.deauthorized anyways

#

this would be fired for the deleted Custom account

heavy ravine
#

Ok. So it's safe to say that .deauthorized is the same as deleted? are there any scenarios where the same event does not mean it's deleted?

icy vortex
#

for the account to be really deleted it would need to disconnect from your applicatioin, so yes

cerulean nightBOT
heavy ravine
#

I just checked the logs and cannot see that we've received any .deauthorized events in the last 24 hours

#

We've received a lot of account.application.authorized however

#

scratch that