Get the List of Mandatory Attributes for a Doctype

I’m finally getting to try out ERPNext’s API interface. I’d like to know if anyone here knows how to Get the mandatory attributes that is necessary for creating a request.