I am creating a script in python that can gather data from an atlassian confluence wiki page through an http request using the curl command. The confluence website I am trying to access is maintained by my company's server. The command I am currently using is:
curl -v -w -u admin:admin https:<span>//confluence.wdc.com/rest/api/content/494966598 | python -mjson.tool</span>
In place of admin:admin I type my username which is my email then a colon and my password so for eg. ridwan.joshi@wdc.com:thisispassword@ai I know that the link is correct as when I click "https://confluence.wdc.com/rest/api/content/494966598" it directly takes me to the page which gets displayed in a JSON format with all the information but when I try to enter that command in the terminal I get an error saying.

How should I securely authenticate to my company's confluence page through the terminal and eventually through my Python script?