registration with API