registering api