Register an API key.