Register using the API