Registration API

Provide an API for registration.