First API prototype working