First version of patrons API