I'm kinda curious, are you trying to
if you're doing the first, I can probably help you with it (because I'm bored and curious),
for the second, there are a few things that you can do like installing a webhook, and when ever something happens accross your API, you can make calls on, maybe something like supabase can help you with it
