Add document type metadata type API endpoints documentation