Hi, luckily the question was answered in this forum:
Get doctype Metadata from Rest API - Developers - ERPNext Forum