Registration API example.