We built and are enhancing a "Salesforce Sandbox Manager" to allocate Salesforce sandboxes to our Jenkins CI/CD and occasionally facilitate other sandbox management tasks.
We'd like our manager to monitor which version each sandbox is on, so it can alert us when it gets old or falls out of sync with either production or other selected sandboxes.
Is there any API (preferably REST) whcih we can use to request the information, either by making a call to production or by making a call to the sandbox itself?