are you able to fetch details using the same api from postman because what I think is there is an api version mismatch your models are using v3.1 and in the url you are using v2.0 try changing to atleast v2.1
GET https://myendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/myCustomModel?api-version=2023-07-31