api client template