registration through api