I have a requirement that needs me to describe a layout on an apex controller, currently I found this Rest Api method that suits my needs: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_layouts.htm
Is there an apex equivalent method?
And if not how can I call that Api from my apex class, bear in mind that these needs to run in a scheduled method where there is no sessionId