Sorry if I ask something too obvious but I am quite Junior dev and not familiar with curl at all.
I am trying to create a new page following the documentation but I keep getting a 401 response, although if I use the login sample command in the docu (curl -D- -X GET -H "Authorization: Basic <MyEncodedEmailrAndToken>" -H "Content-Type: application/json"https://myspace/wiki/rest/api/space) ) I get a 200 status response, so I assume my login ddetails are correct.
The command I am using is: curl -D- -H "Authorization: Basic <MYTOKEN>" -X POST -H 'Content-Type:application/json' https://myspace/confluence/rest/api/content/ -d '{"type":"page","title":"TEST", "space":{"key":"AGE2DE"},"body":{"storage":{"value":"Test","representation":"storage"}}}'
And this is the error I keep getting