Enable registering API by passing in api_key