Status of submission in appstore and testflight

In our product, we are submitting app into appstore and testflight using Appstore connect api. We need information about status of the app submission both in appstore and testflight. I was hoping that any notification might be sent through webhook, but couldnt find any way. My requirement is keeping the app status of an app up-to-date (in our product).

There are two ways to do that,

1- Regularly check status of the app using rest service (for example every 10 minutes) and update it. 2- Subscribe a service or create a webhook that can be used to notified about status changes.

Is there any suggestion, or any guidence how can second way work? Is there any such options?