Hello everyone,
We have a multi-region app (US/EU/AU/IL), each region running its own isolated Monday Code deployment with its own separate database (no cross-region DB access).
The App Events Webhook (install, uninstall, subscription events) only supports one Base URL registered app-wide, with no per-region option. So every account's lifecycle event — regardless of which region that account's data actually lives in — gets sent to that single URL. If an EU account uninstalls, the event arrives at our US deployment, which has no record of that account, so cleanup never reaches the EU database.
We found this post, which says the fix is to decode the JWT and check a rgn claim (us/eu/au) to determine the account's region.
But a real event we captured from our own App Events Webhook has no rgn field anywhere. Decoded JWT payload:
{
"exp": "...",
"dat": {
"client_id": "...",
"user_id": "...",
"account_id": "...",
"slug": "...",
"app_id": "...",
"app_version_id": "...",
"install_id": null,
"is_admin": true,
"is_view_only": false,
"is_guest": false,
"user_kind": "admin"
}
}- No rgn value on the JWT.
Is there a supported way to determine an account's region from this webhook's payload/JWT so we can route the event to the correct regional deployment? If not, is relaying the event to every region and letting each check its own DB the recommended approach?
Thank you in advance