thesis api implementation