call to register endpoint