Thanks for your reply.
I think API is activated and I was able to execute the below command. However, it doesn’t get authenticated.